hyperfine
CLIA command-line benchmarking tool.
Benchmark shell commands with statistical analysis
Recipes
Curated from documentation and usage. Percentages are estimates, not measurements.
Benchmark a single command
hyperfine --warmup 3 'your-command'Compare two commands
hyperfine 'rg pattern .' 'grep -r pattern .'Export results as JSON
hyperfine --export-json results.json 'command'Install
Homebrew
brew install hyperfineCargo
cargo install hyperfineAgent notes
- When to use
- Comparing command performance or measuring execution time
- Quick examples
hyperfine 'sleep 0.3'hyperfine --warmup 3 'grep -r TODO .' 'rg TODO .'
Use from an agent
curl -s https://clihub.com/api/tools/hyperfine | jq '.agentHints.provenRecipes[] | {task, command, verified}'Or call get_tool with slug hyperfine on the MCP server at https://clihub.com/mcp.