hyperfine

Developer ToolsApache-2.0

Command-line benchmarking tool.

Latest v2.0.0 · by David PeterWritten in RustWebsitesharkdp/hyperfineRSS

Release activity

Release activity — 5 releases across 4 days in the last year. Each cell is one day; darker means more releases that day. Older weeks are hidden at this screen width.
AugSepOctNov
SundayNo releases on Aug 2, 2026No releases on Aug 9, 2026No releases on Aug 16, 2026No releases on Aug 23, 2026No releases on Aug 30, 2026No releases on Sep 6, 2026No releases on Sep 13, 2026No releases on Sep 20, 2026No releases on Sep 27, 2026No releases on Oct 4, 2026No releases on Oct 11, 2026No releases on Oct 18, 2026No releases on Oct 25, 2026No releases on Nov 1, 2026No releases on Nov 8, 2026No releases on Nov 15, 2026
MondayNo releases on Aug 3, 2026No releases on Aug 10, 2026No releases on Aug 17, 2026No releases on Aug 24, 2026No releases on Aug 31, 2026No releases on Sep 7, 2026No releases on Sep 14, 2026No releases on Sep 21, 2026No releases on Sep 28, 20261 release on Oct 5, 2026No releases on Oct 12, 2026No releases on Oct 19, 2026No releases on Oct 26, 2026No releases on Nov 2, 2026No releases on Nov 9, 2026
TuesdayNo releases on Aug 4, 2026No releases on Aug 11, 2026No releases on Aug 18, 2026No releases on Aug 25, 2026No releases on Sep 1, 2026No releases on Sep 8, 2026No releases on Sep 15, 2026No releases on Sep 22, 2026No releases on Sep 29, 20261 release on Oct 6, 2026No releases on Oct 13, 2026No releases on Oct 20, 2026No releases on Oct 27, 2026No releases on Nov 3, 2026No releases on Nov 10, 2026
WednesdayNo releases on Aug 5, 2026No releases on Aug 12, 2026No releases on Aug 19, 2026No releases on Aug 26, 2026No releases on Sep 2, 2026No releases on Sep 9, 2026No releases on Sep 16, 2026No releases on Sep 23, 2026No releases on Sep 30, 20262 releases on Oct 7, 2026No releases on Oct 14, 2026No releases on Oct 21, 2026No releases on Oct 28, 2026No releases on Nov 4, 2026No releases on Nov 11, 2026
ThursdayNo releases on Aug 6, 2026No releases on Aug 13, 2026No releases on Aug 20, 2026No releases on Aug 27, 2026No releases on Sep 3, 2026No releases on Sep 10, 2026No releases on Sep 17, 2026No releases on Sep 24, 2026No releases on Oct 1, 2026No releases on Oct 8, 2026No releases on Oct 15, 2026No releases on Oct 22, 2026No releases on Oct 29, 2026No releases on Nov 5, 2026No releases on Nov 12, 2026
FridayNo releases on Aug 7, 2026No releases on Aug 14, 2026No releases on Aug 21, 2026No releases on Aug 28, 2026No releases on Sep 4, 2026No releases on Sep 11, 2026No releases on Sep 18, 2026No releases on Sep 25, 2026No releases on Oct 2, 2026No releases on Oct 9, 2026No releases on Oct 16, 2026No releases on Oct 23, 2026No releases on Oct 30, 2026No releases on Nov 6, 2026No releases on Nov 13, 2026
SaturdayNo releases on Aug 8, 2026No releases on Aug 15, 2026No releases on Aug 22, 2026No releases on Aug 29, 2026No releases on Sep 5, 2026No releases on Sep 12, 2026No releases on Sep 19, 2026No releases on Sep 26, 2026No releases on Oct 3, 2026No releases on Oct 10, 2026No releases on Oct 17, 2026No releases on Oct 24, 2026No releases on Oct 31, 2026No releases on Nov 7, 2026No releases on Nov 14, 2026

5 releases in the last year, busiest day 2

Changelog

What changed from 1 to 2

v2.0.0

Latest
Added 4
  • Add support for alternative performance metrics (peak memory usage, instructions, CPU cycles, cache misses, branch misses) selectable via the new `--metrics` option
  • Add `--env` option to set environment variables without an intermediate shell
  • The plotting and analysis scripts now support different metrics
  • Add `-S` (alias for `--shell=default`) and `--shell <SHELL>` to restore or select the shell used for benchmarked commands
Changed 7
  • By default, hyperfine now displays wall-clock time and peak memory usage
  • The terminal output now shows an overview of all selected performance metrics
  • Benchmarked commands are now executed directly by default, without an intermediate shell (`--shell=none`)
  • Always run `--setup`, `--prepare`, `--conclude`, and `--cleanup` commands in a shell, even when using `--shell=none`
  • The JSON format for `--export-json` has changed to schema version 2, now including metadata, per-run measurements, and statistical summaries for all measured quantities
  • Markdown, AsciiDoc, and org-mode exports now contain only the primary metric
  • CSV exports now include all selected metrics side by side
Removed 3
  • Removed `--time-unit`/`-u`; units are now selected using the `--metrics METRIC[:UNIT],...` option
  • Removed `--sort` option
  • Removed `--reference` and `--reference-name` options; the first command is always the reference command

From hyperfine

See the breaking changes below when migrating from hyperfine 1.x.

Features
  • Add support for alternative performance metrics (peak memory usage, instructions, CPU cycles, cache misses, branch misses, ...). By default, hyperfine will now display wall-clock time and peak memory usage, but users can use the new --metrics option to select different performance metrics. The terminal output now shows an overview of all selected performance metrics (see here for a run with more metrics enabled).

  • Add --env to set environment variables even without an intermediate shell (which is the new default behavior, see below). For example:

    # Parameterized benchmark, comparing different thread counts:
    hyperfine -P threads 1 8 --env 'OMP_NUM_THREADS={threads}' 'my_command'
    
  • The plotting and analysis scripts now support different metrics as well, see #981 and #984 (@sharkdp).

Breaking changes
  • Benchmarked commands are now executed directly by default, without an intermediate shell (--shell=none). Use -S (an alias for --shell=default) to restore the previous behavior (sh on Unix, cmd.exe on Windows), or select a shell with --shell <SHELL>. See the rationale for this change.

  • Always run --setup, --prepare, --conclude, and --cleanup commands in a shell, even when using --shell=none, see #990 (@sharkdp).

  • The JSON format for --export-json has changed (schema version 2). The new format now includes metadata, per-run measurements, and statistical summaries for all measured quantities, see #790 (@sharkdp). Code that reads those exported JSON files must be updated. For example, results[i].mean is now results[i].summary.time_wall_clock.mean, and results[i].times is replaced by results[i].measurements[j].time_wall_clock.value. The new structure looks like this:

    {
        "schema_version": 2,
        "primary_metric": "time_wall_clock",
        "metadata": {
            "hyperfine_version": "2.0.0",
            "start_time": "2026-10-06T12:00:00Z",
            "platform": {"os": "Linux", "architecture": "x86_64"}
        },
        "results": [
            {
                "command": "sleep 1",  # Actual command after parameter substitution
                "name": "wait 1s",  # Optional custom or automatically generated name
                "parameters": {"duration": {"value": "1"}},  # For parametrized runs
                "environment": {"OMP_NUM_THREADS": "8"},  # Only present with --env overrides
                "measurements": [  # One entry per run, excluding warmups
                    {
                        "time_wall_clock": {"value": 1.0, "unit": "second"},
                        "time_cpu": {"value": 0.0, "unit": "second"},
                        "time_user": {"value": 0.0, "unit": "second"},
                        "time_system": {"value": 0.0, "unit": "second"},
                        "memory_peak_resident": {"value": 1048576.0, "unit": "byte"},
                        "cpu_cycles": {"value": 5000000},  # Hardware counters, when available
                        "instructions": {"value": 10000000},
                        "exit_code": 0
                    },
                    ...  # Further runs omitted
                ],
                "summary": {
                    "time_wall_clock": {
                        "unit": "second",
                        "count": 30,
                        "mean": 1.0,
                        "stddev": 0.0,
                        "median": 1.0,
                        "min": 1.0,
                        "max": 1.0
                    }
                    # Other metrics have the same summary structure.
                }
            }
        ]
    }
    

    Times are always exported in seconds and memory in bytes. Hardware counters and their summaries have no unit field. Unavailable memory measurements and hardware counters are omitted; other available counters may also be included. stddev is null for a single run.

  • --time-unit/-u has been removed. Units can now be selected using the --metrics METRIC[:UNIT],… option, e.g. --metrics time_wall_clock:ms,memory_peak_resident:MiB.

  • --sort has been removed. It complicated hyperfine significantly and doesn't make too much sense with the new output format.

  • --reference and --reference-name have been removed (for now). The first command is always considered as the reference command. Invocations using --reference now show migration guidance to put the reference command first.

  • The format of Markdown, AsciiDoc and org-mode, and CSV exports has also been changed. Markdown, AsciiDoc, and org-mode contain only the primary metric (the first metric selected by --metrics). CSV exports all selected metrics side by side.

View originalPermalink
How v2.0.0 went

v2.0.0-alpha.2

Pre-release
Added 1
  • Plotting and analysis scripts can be run directly from GitHub with uvx --from 'git+https://github.com/sharkdp/hyperfine' <script>
Changed 4
  • Always run --setup, --prepare, --conclude, and --cleanup commands in a shell, even when benchmarked commands run directly
  • Improve error messages for --setup, --prepare, --conclude, and --cleanup commands
  • Require an explicit shell choice for commands containing unquoted, standalone shell operators such as && or >: use -S to interpret shell syntax or -N to pass operators as literal arguments
  • Use a compact output layout on narrow terminals
View originalRead the notes
How v2.0.0-alpha.2 went

v2.0.0-alpha.1

Pre-release
Added 5
  • Add support for alternative performance metrics such as peak memory usage, CPU cycles, instructions, cache misses, and branch misses
  • Add the --metrics option to select different performance metrics
  • Terminal output shows an overview of all selected performance metrics, including relative changes
  • Python plotting and analysis scripts support the new JSON format and can select performance metrics with --metric
  • Use -S (alias for --shell=default) to restore the previous shell behavior (sh on Unix, cmd.exe on Windows), or select a shell with --shell <SHELL>
Changed 5
  • By default, display wall-clock time and peak memory usage (wall-clock time only on Windows)
  • Benchmarked commands are now executed directly by default, without an intermediate shell (--shell=none)
  • The JSON format for --export-json has changed to schema version 2, including metadata, per-run measurements, and statistical summaries for all measured quantities
  • Times are always exported in seconds and memory in bytes
  • Markdown, AsciiDoc, org-mode and CSV exports contain only the primary metric, and CSV now includes columns with the name and unit of the primary metric
Removed 3
  • Remove --time-unit/-u; units are now selected using the --metrics METRIC[:UNIT] option
  • Remove --sort option
  • Remove --reference and --reference-name options; the first command is always considered the reference command
View originalRead the notes
How v2.0.0-alpha.1 went

v1.21.0

Added 4
  • Add support for minutes and hours in --time-unit, along with short and plural aliases such as ms, seconds, and min
  • Expose $HYPERFINE_ITERATION to --prepare and --conclude commands
  • Show elapsed time during the initial benchmark run
  • Add colors to --help output
Changed 7
  • With --parameter-scan or --parameter-list, --reference selects an existing benchmark by its full displayed name instead of running a separate reference command; the name must match exactly one benchmark, and --command-name should be used instead of --reference-name in this mode
  • Format times in CSV exports with six decimal places
  • Update dependencies and raise the minimum supported Rust version to 1.97
  • Markdown, AsciiDoc, and Org-mode exports compare against the specified reference, and faster and slower results are labeled in command-sorted comparisons with --reference
  • Build binaries for Windows ARM64 and Linux ARM64 musl
  • Refactor measurement, statistics, and formatting code to use typed quantities
  • Improve documentation and examples, including comparisons across Git branches, iteration variables, reference commands, and selective failure handling
Fixed 9
  • Reject zero values for --runs, --min-runs, and --max-runs instead of allowing invalid run counts
  • Reject negative parameter-scan steps before expanding ranges, avoiding hangs and excessive memory use
  • Preserve existing export files when command options are invalid
  • Truncate export files when rewriting results to avoid leaving trailing bytes
  • Preserve backticks in command names in Markdown exports
  • Handle broken output pipes gracefully instead of panicking
View originalRead the notes
How v1.21.0 went

v1.20.0

Added 4
  • Add `--reference-name` option to give a meaningful name to the reference command
  • The `--ignore-failure` option now supports a comma-separated list of exit codes to ignore (e.g., `--ignore-failure=1,2`)
  • Add `--time-unit` option to `advanced_statistics.py` Python script
  • Add new `plot_benchmarks.py` Python script for plotting collections of benchmarks
Fixed 1
  • Fix bug where naming individual commands with parameter scan was not working correctly
View originalRead the notes
How v1.20.0 went

v1.19.0

Added 8
  • Add a new `--reference <cmd>` option to specify a reference command for the relative speed comparison
  • Add `--conclude` argument (analog to `--prepare`) for running a command after benchmarks
  • Allow `--output=…` to appear once for each command, enabling per-command output destinations
  • The environment variable `$HYPERFINE_ITERATION` contains the current iteration number for each benchmarked command
  • Add iteration information to failure error message
  • Python scripts: legend modification parameters and output DPI
  • Python scripts: nicer whiskers plot
  • Build binaries for aarch64-apple-darwin
Fixed 2
  • ETA is clearly visible on terminals with a block cursor
  • Fix zsh completions
View originalRead the notes
How v1.19.0 went

v1.18.0

Added 1
  • Add support for microseconds via `--time-unit microsecond`
Fixed 1
  • Proper argument quoting on Windows CMD
View originalRead the notes
How v1.18.0 went

v1.17.0

Added 2
  • Add new `--sort` option to control the order in the relative speed comparison and in markup export formats
  • Added `--log-count` option for histogram plots, see `scripts/plot_histogram.py`
Changed 4
  • Parameters which are unused in the command line are now displayed in parentheses
  • Updated hyperfine to use `windows-sys` instead of the unmaintained `winapi`
  • Silenced deprecation warning in Python scripts
  • Major update of the man page
Fixed 2
  • Do not export intermediate results to stdout when using `-` as a file name
  • Markup exporting does not fail if benchmark results are zero
View originalRead the notes
How v1.17.0 went

v1.16.1

Fixed 2
  • Line-wrapping of the --help text
  • The --input=null option
View originalRead the notes
How v1.16.1 went

v1.16.0

Added 2
  • Added new `--input` option
  • Added possibility to specify `-` as the filename in the `--export-*` options
Changed 1
  • Improve hints for outlier warnings if `--warmup` or `--prepare` are in use already
Fixed 2
  • Fix uncolored output on Windows if `TERM` is not set
  • On Windows, only run `cmd.exe` with the `/C` option and use `-c` for all other shells
View originalRead the notes
How v1.16.0 went
View all

Discussion

If you publish hyperfine, you can claim this product by proving you administer its repository.