{"id":15654071,"url":"https://github.com/paulmillr/micro-bmark","last_synced_at":"2025-10-10T09:34:18.518Z","repository":{"id":57296388,"uuid":"251024819","full_name":"paulmillr/micro-bmark","owner":"paulmillr","description":"Benchmark your node.js projects with nanosecond resolution.","archived":false,"fork":false,"pushed_at":"2025-04-21T17:30:49.000Z","size":59,"stargazers_count":34,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-21T17:47:06.146Z","etag":null,"topics":["bechmark","bench","nanosecond","node","nodejs","resolution"],"latest_commit_sha":null,"homepage":"https://paulmillr.com","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/paulmillr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/funding.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"paulmillr"}},"created_at":"2020-03-29T12:18:28.000Z","updated_at":"2025-04-21T17:30:51.000Z","dependencies_parsed_at":"2024-06-18T22:34:16.054Z","dependency_job_id":"a0bff7dd-4b9d-4864-8bee-b3194eb2d7ec","html_url":"https://github.com/paulmillr/micro-bmark","commit_stats":{"total_commits":26,"total_committers":1,"mean_commits":26.0,"dds":0.0,"last_synced_commit":"87a65f97767688edec7401adf67e8d933eaa0ec5"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paulmillr%2Fmicro-bmark","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paulmillr%2Fmicro-bmark/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paulmillr%2Fmicro-bmark/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paulmillr%2Fmicro-bmark/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/paulmillr","download_url":"https://codeload.github.com/paulmillr/micro-bmark/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251812844,"owners_count":21647975,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bechmark","bench","nanosecond","node","nodejs","resolution"],"created_at":"2024-10-03T12:49:24.365Z","updated_at":"2025-10-10T09:34:18.513Z","avatar_url":"https://github.com/paulmillr.png","language":"JavaScript","funding_links":["https://github.com/sponsors/paulmillr"],"categories":[],"sub_categories":[],"readme":"# micro-bmark\n\n\u003e [!WARNING]\n\u003e The package got merged into [paulmillr/jsbt](https://github.com/paulmillr/jsbt)\n\u003e and is now deprecated.\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 () =\u003e {\n  await bench('printing', () =\u003e Promise.resolve(0));\n  await bench('base', () =\u003e Promise.resolve(1));\n  await bench('sqrt', 10000, () =\u003e 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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpaulmillr%2Fmicro-bmark","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpaulmillr%2Fmicro-bmark","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpaulmillr%2Fmicro-bmark/lists"}