{"name":"micro-bmark","version":"0.4.1","keywords":["benchmark","bench","mark","nanosecond","microsecond","millisecond","hrtime","date","micro"],"author":{"url":"https://paulmillr.com","name":"Paul Miller"},"license":"MIT","_id":"micro-bmark@0.4.1","maintainers":[{"name":"paulmillr","email":"paul@paulmillr.com"}],"homepage":"https://github.com/paulmillr/micro-bmark","bugs":{"url":"https://github.com/paulmillr/micro-bmark/issues"},"dist":{"shasum":"42a7996faee60a84b2e428b432769e35f0267361","tarball":"http://registry-npm.ywwl.com/micro-bmark/download/micro-bmark-0.4.1.tgz","fileCount":9,"integrity":"sha512-DOZFW+kL6Y6SsVlPv1qz/vMqqszw+RxbLTPuGDjEhKkHOGdoSwfZC1r6St94kHSn2O9Db9UdYK8H0xw2vK2maw==","signatures":[{"sig":"MEQCIFzacH0RjkDl2nexh8wWlHOC/A31qemfu2fZhFV068hJAiBJiRJwmN1EOGFGlQ6QZ9qzz0eEZ1jDIwSFyyb4G5+PNg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/micro-bmark@0.4.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":40648,"size":9873,"noattachment":false,"key":"/micro-bmark/-/micro-bmark-0.4.1.tgz"},"main":"index.js","type":"module","types":"./index.d.ts","gitHead":"98ae68e9455bdf77f2287501d2c2435d30513e42","scripts":{"test":"node test.js","build":"tsc","test:bun":"bun test.js","test:deno":"deno test.js"},"_npmUser":{"name":"paulmillr","email":"paul@paulmillr.com"},"deprecated":"Switch to \"@paulmillr/jsbt\"","repository":{"url":"git+https://github.com/paulmillr/micro-bmark.git","type":"git"},"_npmVersion":"10.9.2","description":"Benchmark your JS projects with nanosecond resolution","directories":{},"_nodeVersion":"22.13.0","_hasShrinkwrap":false,"devDependencies":{"prettier":"3.5.3","typescript":"5.8.3","@paulmillr/jsbt":"0.3.3"},"_npmOperationalInternal":{"tmp":"tmp/micro-bmark_0.4.1_1745256735049_0.9514251197275101","host":"s3://npm-registry-packages-npm-production"},"readme":"# micro-bmark\n\nBenchmark your JS projects with nanosecond resolution.\n\n- Precise: 1ns resolution using `process.hrtime`\n- Lightweight: ~200 lines of code, no dependencies - to not interfere with benchmarked code\n- Readable: utilizes colors and nice units, shows rel. margin of error only if it's high\n\n![](https://user-images.githubusercontent.com/574696/184465244-b5784438-6af8-4a3d-abaa-03a0057768e6.png)\n\n## Usage\n\n    npm install --save-dev micro-bmark\n\n```js\nimport bench from 'micro-bmark';\n(async () => {\n  await bench('printing', () => Promise.resolve(0));\n  await bench('base', () => Promise.resolve(1));\n  await bench('sqrt', 10000, () => Math.sqrt(2));\n})();\n```\n\nExample output:\n\n```\ngetPublicKey x 6,072 ops/sec @ 164μs/op ± 8.22% [143μs..17ms]\nsign x 4,980 ops/sec @ 200μs/op\nverify x 969 ops/sec @ 1ms/op\nrecoverPublicKey x 890 ops/sec @ 1ms/op\ngetSharedSecret x 585 ops/sec @ 1ms/op\n```\n\n## License\n\nMIT License\n\nCopyright (c) 2020 Paul Miller (https://paulmillr.com), (c) 2010-2016 Mathias Bynens, John-David Dalton, (c) Robert Kieffer from JSLitmus.js\n","publish_time":1745256735284,"_cnpm_publish_time":1745256735284,"dist-tags":{"latest":"0.4.2"}}