Buckets:
ktongue/docker_container / .cache /opencode /node_modules /pino /benchmarks /utils /generate-benchmark-doc.js
| const { join } = require('node:path') | |
| const { execSync } = require('node:child_process') | |
| const run = (type) => { | |
| process.stderr.write(`benchmarking ${type}\n`) | |
| return execSync(`node ${join(__dirname, 'runbench')} ${type} -q`) | |
| } | |
| console.log(` | |
| # Benchmarks | |
| \`pino.info('hello world')\`: | |
| \`\`\` | |
| ${run('basic')} | |
| \`\`\` | |
| \`pino.info({'hello': 'world'})\`: | |
| \`\`\` | |
| ${run('object')} | |
| \`\`\` | |
| \`pino.info(aBigDeeplyNestedObject)\`: | |
| \`\`\` | |
| ${run('deep-object')} | |
| \`\`\` | |
| \`pino.info('hello %s %j %d', 'world', {obj: true}, 4, {another: 'obj'})\`: | |
| For a fair comparison, [LogLevel](http://npm.im/loglevel) was extended | |
| to include a timestamp and [bole](http://npm.im/bole) had | |
| \`fastTime\` mode switched on. | |
| `) | |
Xet Storage Details
- Size:
- 722 Bytes
- Xet hash:
- b94d34aef0ab7ea9c9d823b68a35008e7a223a5680e03ab2e1c3afd0c2986296
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.