-
-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Eugene Lazutkin edited this page Jul 8, 2026
·
14 revisions
nano-benchmark provides command-line utilities for micro-benchmarking code
with nonparametric statistics and significance testing.
Node, Deno and Bun are supported.
🔍 Search this wiki — ranked, deep-linked search via wiki-search; install the bookmarklet to search in place. Fallback: GitHub wiki search.
CLI tools
- nano-watch — continuously benchmarks a single function, showing live statistics and memory usage.
- nano-bench — benchmarks and compares multiple functions, calculating confidence intervals and statistical significance.
- nano-bench-compare — views and compares saved results (JSON), recomputing significance from the raw samples — for before/after comparisons across runs.
Background
- Concepts — background on the approach and the statistics behind it.
Reference
- Release notes — full release history.
Use --self to get the script path for running with alternative interpreters:
$ npx nano-bench benchmark.js
$ bun `npx nano-bench --self` benchmark.js
$ deno run --allow-read --allow-hrtime `npx nano-bench --self` benchmark.js
$ deno run -A `npx nano-bench --self` benchmark.js
$ node `npx nano-bench --self` benchmark.jsCLI tools
Background
Reference