Favicon of hyperfine

hyperfine

Command-line benchmarking tool with statistical analysis, warmup runs, cache clearing, outlier detection, and export to CSV, JSON, Markdown, and AsciiDoc formats.

hyperfine is a powerful command-line benchmarking tool designed for developers and performance engineers who need accurate, reliable measurements of command execution times. Whether you're optimizing algorithms, comparing tools, or monitoring software performance, hyperfine provides the statistical rigor and practical features needed for real-world benchmarking.

Key capabilities include:

  • Statistical analysis across multiple runs with automatic determination of run count and duration
  • Arbitrary shell command support for benchmarking any executable or script
  • Real-time progress feedback with live estimates during benchmark execution
  • Warmup runs to test with warm caches and cache-clearing commands for cold-cache testing
  • Outlier detection to identify interference from background processes and caching effects
  • Multiple export formats: CSV, JSON, Markdown, and AsciiDoc for integration with reports and analysis tools
  • Parameterized benchmarks to vary parameters like thread count or configuration values
  • Cross-platform support with shell spawning time correction for accurate measurements

The tool automatically corrects for shell overhead, making it suitable for benchmarking even very fast commands. You can run benchmarks without an intermediate shell for sub-5ms operations, use custom shells like zsh or bash, and benchmark shell functions and aliases. hyperfine is ideal for performance testing in large or complex software projects where consistent, reproducible measurements are essential.

Install

Apt
$ apt install hyperfine

Features

JSON outputScriptable

Media

Pros

4
  • Provides statistical analysis of benchmark runs
  • Supports warmup and cache clearing for accurate measurements
  • Outputs results in multiple formats including JSON and Markdown
  • Allows for parameterized benchmarks to test variations

Related tools

Categories:

Share:

Auto-fetched .

Recent releases

Similar to hyperfine

Favicon

 

  
 
Favicon

 

  
 
Favicon