{"name":"micro-bmark","version":"0.4.0","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.0","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":"fa9323668eb93eaebfdededbffb0fd7d0b7a60fc","tarball":"http://registry-npm.ywwl.com/micro-bmark/download/micro-bmark-0.4.0.tgz","fileCount":9,"integrity":"sha512-lQHxIE9BurlmqBR3J4NJnUH6I72kChBYXuBeNkvNT3viFHKfYj2c070OysLZwtjBTxTjIgsUqjgcttMWlmASVA==","signatures":[{"sig":"MEYCIQCVXQ6u1jhxzEHm6/YD46nKbit3GlHufIFXZqtXybXA7QIhALVZlfp/kwtmVnORJ/ZbK9YY/ItnMOU218TnFlqoI02e","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/micro-bmark@0.4.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":40556,"size":9854,"noattachment":false,"key":"/micro-bmark/-/micro-bmark-0.4.0.tgz"},"main":"index.js","type":"module","types":"./index.d.ts","gitHead":"c2671a027089cb8228a551aacacd35e4c494e5ca","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.3.2","typescript":"5.5.2","@paulmillr/jsbt":"0.3.1"},"_npmOperationalInternal":{"tmp":"tmp/micro-bmark_0.4.0_1737187994013_0.9099989076327961","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":1737187994219,"_cnpm_publish_time":1737187994219,"dist-tags":{"latest":"0.4.2"}}