Cette page est affichée en anglais. Une traduction française est en cours.
ScriptsApr 12, 2026·2 min de lecture

Hyperfine — Command-Line Benchmarking Tool

Hyperfine is a command-line benchmarking tool written in Rust. Run benchmarks with statistical analysis: multiple runs, warmup, outlier detection, comparison across commands, and export results. By the author of bat and fd.

Introduction

Hyperfine is a command-line benchmarking tool written in Rust by David Peter (also author of bat, fd, and pastel). Runs a command multiple times, performs statistical analysis, detects outliers, and outputs clean formatted results. The standard tool for CLI benchmarking.

What Hyperfine Does

  • Multiple runs — statistical significance (mean, stddev, min, max)
  • Warmup — configurable warmup runs before measurement
  • Outlier detection — flags and handles statistical outliers
  • Comparison — benchmark multiple commands side by side
  • Parameter scan — sweep a variable across values
  • Preparation — run setup before each benchmark iteration
  • Export — Markdown, JSON, CSV, AsciiDoc
  • Shell — configurable shell or no shell
  • Progress bar — visual progress during runs

Comparison

Tool Statistical Multi-cmd Export
Hyperfine Full Yes MD/JSON/CSV
time (shell) None No No
bench (Go) Basic No No
poop (Zig) Full Yes Terminal

FAQ

Q: How many runs are needed? A: By default it decides automatically (at least 10 runs or 3 seconds). Add --min-runs 50 or --max-runs 100 for precise control.

Q: How to eliminate cache effects? A: Use --prepare to clear caches before each run, or --warmup 5 to let caches stabilize before timing.

Sources

Discussion

Connectez-vous pour rejoindre la discussion.
Aucun commentaire pour l'instant. Soyez le premier à partager votre avis.

Actifs similaires