Buckets:
| const formatters = { | |
| level (label, number) { | |
| return { | |
| log: { | |
| level: label | |
| } | |
| } | |
| }, | |
| bindings (bindings) { | |
| return { | |
| process: { | |
| pid: bindings.pid | |
| }, | |
| host: { | |
| name: bindings.hostname | |
| } | |
| } | |
| }, | |
| log (obj) { | |
| return { foo: 'bar', ...obj } | |
| } | |
| } | |
| const bench = require('fastbench') | |
| const pino = require('../') | |
| delete require.cache[require.resolve('../')] | |
| const pinoNoFormatters = require('../')(pino.destination('/dev/null')) | |
| delete require.cache[require.resolve('../')] | |
| const pinoFormatters = require('../')({ formatters }, pino.destination('/dev/null')) | |
| const max = 10 | |
| const run = bench([ | |
| function benchPinoNoFormatters (cb) { | |
| for (var i = 0; i < max; i++) { | |
| pinoNoFormatters.info({ hello: 'world' }) | |
| } | |
| setImmediate(cb) | |
| }, | |
| function benchPinoFormatters (cb) { | |
| for (var i = 0; i < max; i++) { | |
| pinoFormatters.info({ hello: 'world' }) | |
| } | |
| setImmediate(cb) | |
| } | |
| ], 10000) | |
| run(run) | |
Xet Storage Details
- Size:
- 1.01 kB
- Xet hash:
- 592e6a3b4b0fd32fe764d94810d9583e6cd31ddf13d50e758fc406018f994d4c
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.