Hyperfine Command-Line Benchmarking Tool
Benchmark command-line programs with statistical rigor using Hyperfine. Performs warmup runs, detects outliers, exports results in JSON/CSV/Markdown, and supports parameterized benchmarks for comparison.
Installation
Use the upstream install or setup path that matches your environment:
- brew install hyperfine
- conda install -c conda-forge hyperfine
- cargo install --locked hyperfine
- Make sure that you use Rust 1.76 or newer.
Requirements and caveats from upstream:
- of helpful Python programs to further analyze benchmark results and create helpful
Basic usage or getting-started notes:
Cache-clearing commands can be set up before each timing run.
Basic benchmarks
To run a benchmark, you can simply call hyperfine .... The argument(s) can be any
Extracted from upstream docs: https://raw.githubusercontent.com/sharkdp/hyperfine/HEAD/README.md