Hyperfine
Developer CLI · Free
A CLI for reproducible command benchmarks: performs multiple runs and reports timing statistics to compare implementations.
Also known as: sharkdp/hyperfine; hyperfine; cli-benchmarking-tool

What you can use for free
Code and local use under MIT.
Paid features and costs
Computing resources, self-hosting, and external services are paid for separately if used.
Access and limitations
Code and local use under MIT. Computing resources, self-hosting, and external services are paid for separately if used.
Use cases
- Compare the execution time of two commands
- Perform repeated measurements and compare timing statistics
Example workflow
A possible workflow; this is not a report of hands-on testing.
Compare the execution time of two commands.
Before you start
- Project files or environment.
- A shell and supported platform.
Steps
- Define comparable commands and identical benchmark inputs.
- Perform repeated measurements and compare timing statistics.
- Save the working command or script and the result criteria.
Check your result
- The command correctly handles paths, Unicode, and invalid inputs.
- Repeat runs behave predictably; credentials do not appear in the output.
Choosing Hyperfine
Compare the execution time of two commands
Choose this when
- Compare the execution time of two commands
- Perform repeated measurements and compare timing statistics
Requirements
- Choose identical inputs and explicitly define cache behavior: warming up or preparing before each measurement.
Things to consider
- Costs and limits of free use: Computing resources, self-hosting, and external services are paid for separately if used.
- Terms of use: MIT for the code; dependencies have separate licenses.
- Warm-cache and cold-cache results cannot be compared as the same experiment.
Frequently asked questions
What can you use for free in Hyperfine?
Code and local use under MIT.
What additional costs might arise with Hyperfine?
Computing resources, self-hosting, and external services are paid for separately if used.
What terms of use matter for Hyperfine?
MIT for the code; dependencies have separate licenses.
How do you get started with Hyperfine?
Define comparable commands and identical benchmark inputs. Perform repeated measurements and compare timing statistics. Save the working command or script and the result criteria.
How does --warmup differ from --prepare in Hyperfine?
--warmup performs preliminary runs before measurements. --prepare runs the specified preparation command before every measured run, for example to clear the cache. --setup runs once before a command's series; this is a different stage.
License
MIT for the code; dependencies have separate licenses.
MIT — permissive license
You can use, modify, distribute, and sell the code, including in a closed-source commercial product. When sharing copies or substantial portions of the code, retain the license text and copyright notice. You do not need to open-source your entire project; the author provides no warranties.
License termsTechnologies and topics
- Hyperfine
- CLI
- Development