hyperfine is a free command-line tool that tells you how fast a command really is. Give it a command, such as hyperfine 'python build.py', and it runs it at least 10 times, then shows the average time, the spread and the fastest and slowest runs, with a live progress bar while it works. Give it two or more commands and it ranks them, saying which is faster and by how much.
It earns its place because timing a command once with time is mostly noise: caches, other programs and luck all change the result. hyperfine does warmup runs, can run a cache-clearing command before each run, warns about outliers, and exports results as Markdown, CSV or JSON for a pull request or a chart; Python scripts in the repo turn the JSON into plots. Version 2.0 also shows peak memory by default and can count CPU cycles and instructions, plus cache and branch misses on Linux. It comes from David Peter, who also made fd and bat.
hyperfine is dual-licensed under MIT and Apache 2.0 and written in Rust. David Peter (sharkdp) started it in 2018; it has about 29,400 stars and around 135 contributors. Version 2.0.0 came out on 7 October 2026.
- Repository: github.com/sharkdp/hyperfine
- Licence: Apache-2.0 (Apache License 2.0)
- Language: Rust. Stars: 29.4K. Forks: 723. Last push: Nov 1, 2026.
- Scan: safe, Nov 28, 2026, commit c516152
Who it is for
Developers comparing two versions of a program, people choosing between tools (is ripgrep faster than grep on this folder?), and anyone backing up a speed claim in a pull request. It runs on macOS, Linux and Windows from a terminal.
Getting started
1. Install on macOS or Linux with Homebrew
brew install hyperfine2. Or on Windows, with winget
winget install hyperfine3. Or on Ubuntu and Debian
sudo apt install hyperfine4. Time one command, with 3 warmup runs first
hyperfine --warmup 3 'python script.py'5. Compare two commands; it says which is faster and by how much
hyperfine 'grep -R TODO .' 'rg TODO'6. Add -S for shell features such as pipes and *, and save a Markdown table
hyperfine -S 'cat *.log | wc -l' --export-markdown results.mdPackage managers install the hyperfine program and change nothing else. hyperfine runs the commands you give it over and over, so do not benchmark anything that deletes or sends things, and remember that a cache-clearing --prepare command may need sudo. Since 2.0, commands run without a shell unless you add -S. Our scan covers the source code, not the prebuilt binaries.
Safety scan
We cloned sharkdp/hyperfine at commit c516152 on Nov 28, 2026 and ran the checks described on the GitHub Tools page: credential patterns, decode-and-execute code, install-time scripts, committed binaries, risky CI workflows, every host the code talks to, known vulnerabilities in pinned dependencies, and project hygiene. A person read every hit. This is what we found.
- 0 secret hits and no committed binaries across 75 files and about 11,000 lines: Rust for the program and Python for the optional plotting scripts.
- 0 pattern hits. build.rs only writes shell completion files for bash, zsh, fish, PowerShell and Elvish, and the scripts in scripts/ read a file you exported with --export-json and draw charts with matplotlib; nothing runs them for you.
- No install script. Releases are prebuilt binaries for macOS, Linux and Windows plus Debian packages, built by its one workflow; Homebrew, winget, Scoop and most Linux distributions package it too.
- 4 advisories across the 135 Rust packages in Cargo.lock, all unrated: notices that humantime, instant and number_prefix are no longer maintained, and a soundness bug in rustix's extended attribute functions, which hyperfine does not use.
- hyperfine contacts no server; the hosts in the code are documentation links. 1 workflow, with no pull_request_target; none of its 6 third-party actions is pinned to a commit. Dependabot is on; no security policy or CodeQL. OpenSSF Scorecard gives it 3.8 out of 10.
What the scanner counted
| Check | Result |
|---|---|
| Secrets | None found. |
| Suspicious code | None found. |
| Install-time code | 1 Cargo build script |
| Committed binaries | None. |
| CI workflows | 1 workflow. None use pull_request_target. 6 of 6 third-party actions pinned to a tag rather than a commit. |
| Network hosts | 6 distinct hosts referenced from source; most often github.com, stats.stackexchange.com, docs.rs, en.wikipedia.org. No URLs to bare IP addresses. |
| Known vulnerabilities | 4 advisories across 135 pinned packages: 0 critical, 0 high, 0 moderate, 0 low, 4 unrated. Cargo.lock: 135 packages, 4 advisories. |
| Project hygiene | Has automated dependency updates. Missing security policy, CodeQL, licence file, contributing guide. |
| OpenSSF Scorecard | 3.8 out of 10, as of Nov 9, 2026. |
The raw findings
Every hit the scanner wrote out, with a link to the exact line at the scanned commit. Secrets candidates are redacted.
Worst known vulnerabilities (4 of 4)
| Advisory | Severity | Package | Summary |
|---|---|---|---|
| RUSTSEC-2026-0542 | unknown | humantime@2.4.0 | humantime is unmaintained |
| RUSTSEC-2024-0384 | unknown | instant@0.1.13 | `instant` is unmaintained |
| RUSTSEC-2025-0119 | unknown | number_prefix@0.4.0 | number_prefix crate is unmaintained |
| GHSA-jh2m-fhpj-3vr7 | unknown | rustix@1.1.5 | xattr functions mark unwritten bytes as initialized when given a zero-length buffer |
By the numbers
| Stars | 29.4K |
|---|---|
| Forks | 723 |
| Contributors | 135 |
| Commits | 1,213 |
| Open issues | 39 |
| Open pull requests | 45 |
| Releases | 30 |
| Latest release | v2.0.0 |
| Licence | Apache-2.0 |
| Main language | Rust |
| Project age | 8 years |
| Last push | Nov 1, 2026 |
| Tracked files | 75 |
| Lines of code | 11.1K |
| Checkout size | 594 KB |
Lines by language: Rust 8,847, Markdown 1,062, Python 723, YAML 378, TOML 132.
Questions
Is hyperfine free?
Yes. It is free and open source under MIT or Apache 2.0, your choice, with no paid version and no account.
hyperfine or the time command?
time measures one run, which swings with caches and whatever else your computer is doing. hyperfine runs the command many times, gives you an average with its spread, and compares commands side by side.
Does hyperfine work on Windows?
Yes. Install it with winget, Scoop or Chocolatey. Add -S to run commands through cmd.exe, or pick another shell with --shell. Peak memory and hardware counters are not measured on Windows yet.
Can hyperfine measure memory?
Yes. Since version 2.0 it shows peak memory next to the time by default on macOS and Linux, and --metrics picks others such as CPU time, cycles and instructions.
How do I uninstall hyperfine?
Run brew uninstall hyperfine, winget uninstall hyperfine or sudo apt remove hyperfine. It keeps no settings.
This post is part of GitHub Tools, where every repository is cloned and scanned before it is written up. The scan is a snapshot of one commit on one day; the repository has moved on since, so check it before you install.
