hyperfine

CLI

A command-line benchmarking tool.

3 views

Installation

Homebrewbrew install hyperfine
Cargocargo install hyperfine

Links

License

MIT OR Apache-2.0

AI Agent Notes

Benchmark shell commands with statistical analysis

When to use

Comparing command performance or measuring execution time

Examples
  • hyperfine 'sleep 0.3'
  • hyperfine --warmup 3 'grep -r TODO .' 'rg TODO .'

Proven Recipes

Benchmark a single command🟢 99% success
hyperfine --warmup 3 'your-command'
Compare two commands🟢 98% success
hyperfine 'rg pattern .' 'grep -r pattern .'
Export results as JSON🟢 98% success
hyperfine --export-json results.json 'command'