Files

422 lines
14 KiB
Markdown
Raw Permalink Normal View History

2025-11-18 09:34:01 +01:00
# v1.20.0
## Features
- Add `--reference-name` option to give a meaningful name to the reference command, see #808 (@niklasdewally)
- The `--ignore-failure` option now supports a comma-separated list of exit codes to ignore (e.g., `--ignore-failure=1,2`), see #836 (@sharkdp)
- Python scripts: Add `--time-unit` option to `advanced_statistics.py` (@sharkdp)
- Python scripts: Add new `plot_benchmarks.py` script for plotting collections of benchmarks, see #806 (@marxin)
## Bugfixes
- Fix bug where naming individual commands with parameter scan was not working correctly, see #794 (@teofr)
## Other
- Restrict `cat` tests to Unix environments, see #776 and #777 (@ritvikos)
2024-11-11 22:39:30 +01:00
# v1.19.0
2023-06-03 23:38:47 +02:00
## Features
2024-11-11 22:39:30 +01:00
- Add a new `--reference <cmd>` option to specify a reference command for the relative speed comparison, see #579, #577 and #744 (@sharkdp)
- Add `--conclude` argument (analog to `--prepare`), see #565 and #719 (@jackoconnordev)
- Allow `--output=…` to appear once for each command, enabling use cases like `hyperfine --output=null my-cmd --output=./file.log my-cmd`, see #529 and #775 (@sharkdp)
- The environment variable `$HYPERFINE_ITERATION` will now contain the current iteration number for each benchmarked command, see #775 (@sharkdp)
- Add iteration information to failure error message, see #771 and #772 (@sharkdp)
- Python scripts:
- legend modification parameters and output DPI, see #758 (@Spreadcat)
- Nicer whiskers plot, see #727 (@serpent7776)
2023-06-03 23:38:47 +02:00
## Bugfixes
2024-11-11 22:39:30 +01:00
- ETA not clearly visible on terminals with a block cursor, see #698 and #699 (@overclockworked64)
- Fix zsh completions, see #717 (@xzfc)
2023-06-03 23:38:47 +02:00
## Other
2024-11-11 22:39:30 +01:00
- Build binaries for aarch64-apple-darwin, see #728 (@Phault)
- Various cleanups (@hamirmahal, @one230six)
2023-06-03 23:38:47 +02:00
2023-10-05 09:48:09 +02:00
# v1.18.0
## Features
- Add support for microseconds via `--time-unit microsecond`, see #684 (@sharkdp)
## Bugfixes
- Proper argument quoting on Windows CMD, see #296 and #678 (@PedroWitzel)
2023-06-04 08:25:49 +02:00
# v1.17.0
2022-05-17 22:57:20 +02:00
## Features
2023-06-03 23:22:43 +02:00
- Add new `--sort` option to control the order in the rel. speed comparison and in markup export formats, see #601, #614, #655 (@sharkdp)
2023-04-20 21:46:50 +02:00
- Parameters which are unused in the command line are now displayed in parentheses, see #600 and #644 (@sharkdp).
- Added `--log-count` option for histogram plots, see `scripts/plot_histogram.py` (@sharkdp)
2023-03-15 09:36:43 +01:00
## Changes
2023-04-20 21:46:50 +02:00
- Updated hyperfine to use `windows-sys` instead of the unmaintained `winapi`, see #624, #639, #636, #641 (@clemenswasser)
- Silenced deprecation warning in Python scripts, see #633 (@nicovank)
2023-06-03 23:22:43 +02:00
- Major update of the man page, see 0ce6578, #647 (@sharkdp)
2023-03-15 09:36:43 +01:00
## Bugfixes
2023-04-20 21:46:50 +02:00
- Do not export intermediate results to stdout when using `-` as a file name, see #640 and #643 (@sharkdp)
- Markup exporting does not fail if benchmark results are zero, see #642 (@sharkdp)
2023-03-15 09:36:43 +01:00
2023-03-21 20:55:03 +01:00
# v1.16.1
## Bugfixes
- Fix line-wrapping of `--help` text (@sharkdp)
- Fix `--input=null` (@sharkdp)
2023-03-15 09:36:43 +01:00
# v1.16.0
## Features
2023-03-15 09:13:13 +01:00
- Added new `--input` option, see #541 and #563 (@snease)
2023-03-15 09:36:43 +01:00
- Added possibility to specify `-` as the filename in the
`--export-*` options, see #615 and #623 (@humblepenguinn)
2022-09-07 09:16:43 +02:00
## Changes
2022-11-20 21:18:03 +01:00
- Improve hints for outlier warnings if `--warmup` or `--prepare` are in use already,
see #570 (@sharkdp)
2022-09-07 09:16:43 +02:00
## Bugfixes
2022-10-29 15:04:01 +02:00
- Fix uncolored output on Windows if `TERM` is not set, see #583 (@nabijaczleweli)
- On Windows, only run `cmd.exe` with the `/C` option. Use `-c` for all other shells.
See #568 and #582 (@FilipAndersson245)
2022-09-07 09:16:43 +02:00
## Other
2023-03-15 09:36:43 +01:00
- Thanks to @berombau for working on dependency upgrades, see #584
- Fixed installationm on Windows, see #595 and #596 (@AntoniosBarotsis)
2022-09-07 09:16:43 +02:00
# v1.15.0
## Features
2022-09-07 08:46:35 +02:00
- Disable colorized output in case of `TERM=dumb` or `NO_COLOR=1`, see #542 and #555 (@nabijaczleweli)
- Add new (experimental) `--min-benchmarking-time <secs>` option, see #527 (@sharkdp)
2022-05-17 22:57:20 +02:00
## Bugfixes
2022-09-07 08:37:16 +02:00
- Fix user and kernel times on Windows, see #368 and #538 (@clemenswasser)
2022-05-17 22:57:20 +02:00
## Other
2022-09-07 08:37:16 +02:00
- Improve `--help` texts of `--export-*` options, see #506 and #522 (@Engineer-of-Efficiency)
2022-05-17 22:57:20 +02:00
2022-05-17 22:37:08 +02:00
# v1.14.0
2020-05-25 15:59:05 +02:00
2021-05-10 14:56:01 +02:00
## Features
2022-05-17 22:37:08 +02:00
- Add a new `--output={null,pipe,inherit,<FILE>}` option to control
where the output of the benchmarked program is redirected (if at all),
see #377 and #509 (@tavianator, originally suggested by @BurntSushi)
2022-05-15 21:58:47 +02:00
- Add Emacs org-mode as a new export format, see #491 (@ppaulweber)
2022-03-05 12:10:38 +01:00
# v1.13.0
## Features
2022-02-22 22:05:24 +01:00
- Added a new `--shell=none`/`-N` option to disable the intermediate
shell for executing the benchmarked commands. Hyperfine normally
measures and subtracts the shell spawning time, but the intermediate
shell always introduces a certain level of measurement noise. Using
`--shell=none`/`-N` allows users to benchmark very fast commands
(with a runtime on the order of a few milliseconds). See #336, #429,
and #487 (@cipriancraciun and @sharkdp)
2022-03-05 13:01:40 +01:00
- Added `--setup`/`-s` option that can be used to run `make all` or
similar. It runs once per set of tests, like `--cleanup`/`-c` (@avar)
2022-03-05 12:03:29 +01:00
- Added new `plot_progression.py` script to debug background interference
effects.
2021-10-17 19:32:55 +02:00
## Changes
2022-02-03 20:48:23 +01:00
- Breaking change: the `-s` short option for `--style` is now used for
the new `--setup` option.
2022-02-22 09:24:00 +01:00
- The environment offset randomization is now also available on Windows,
see #484
2021-10-17 19:32:55 +02:00
## Other
2022-02-22 09:15:25 +01:00
- Improved documentation and test coverage, cleaned up code base for
future improvements.
2021-10-17 19:32:55 +02:00
# v1.12.0
## Features
2021-07-27 22:36:26 +02:00
- `--command-name` can now take parameter names from `--parameter-*` options, see #351 and #391 (@silathdiir)
2021-10-17 19:32:55 +02:00
- Exit codes (or signals) are now printed in cases of command failures, see #342 (@KaindlJulian)
- Exit codes are now part of the JSON output, see #371 (@JordiChauzi)
- Colorized output should now be enabled on Windows by default, see #427
2020-10-25 19:04:17 +01:00
2020-10-16 23:57:21 +02:00
## Changes
- When `--export-*` commands are used, result files are created before benchmark execution
2021-05-10 14:56:01 +02:00
to fail early in case of, e.g., wrong permissions. See #306 (@s1ck).
- When `--export-*` options are used, result files are written after each individual
2020-10-17 22:57:32 +02:00
benchmark command instead of writing after all benchmarks have finished. See #306 (@s1ck).
2021-07-27 22:51:34 +02:00
- Reduce number of shell startup time measurements from 200 to 50, generally speeding up benchmarks. See #378
2021-10-17 19:32:55 +02:00
- User and system time are now in consistent time units, see #408 and #409 (@film42)
2020-10-16 23:57:21 +02:00
# v1.11.0
## Features
- The `-L`/`--parameter-list` option can now be specified multiple times to
evaluate all possible combinations of the listed parameters:
2020-09-14 23:21:47 -07:00
``` bash
hyperfine -L number 1,2 -L letter a,b,c \
"echo {number}{letter}" \
"printf '%s\n' {number}{letter}"
# runs 12 benchmarks: 2 commands (echo and printf) times 6 combinations of
# the "letter" and "number" parameters
```
See: #253, #318 (@wchargin)
2020-10-14 21:31:15 +02:00
- Add CLI option to identify a command with a custom name, see #326 (@scampi)
2020-05-25 15:59:05 +02:00
## Changes
2020-09-14 23:21:47 -07:00
2020-10-16 23:57:21 +02:00
- When parameters are used with `--parameter-list` or `--parameter-scan`, the JSON export format
now contains a dictionary `parameters` instead of a single key `parameter`. See #253, #318.
- The `plot_parametrized.py` script now infers the parameter name, and its `--parameter-name`
argument has been deprecated. See #253, #318.
2020-09-14 23:21:47 -07:00
2020-05-25 15:59:05 +02:00
## Bugfixes
2020-10-16 23:57:21 +02:00
- Fix a bug in the outlier detection which would only detect "slow outliers" but not the fast
ones (runs that are much faster than the rest of the benchmarking runs), see #329
2020-10-16 10:47:26 +02:00
- Better error messages for very fast commands that would lead to inf/nan results in the relative
speed comparison, see #319
- Show error message if `--warmup` or `--*runs` arguments can not be parsed, see #337
- Keep output colorized when the output is not interactive and `--style=full` or `--style=color` is used.
2020-05-25 15:59:05 +02:00
# v1.10.0
## Features
- Hyperfine now comes with shell completion files for Bash, Zsh, Fish
and PowerShell, see #290 (@four0000four).
- Hyperfine now comes with a basic man page, see #257 (@cadeef)
2020-05-25 16:06:54 +02:00
- During execution of benchmarks, hyperfine will now set a `HYPERFINE_RANDOMIZED_ENVIRONMENT_OFFSET` environment variable in order to randomize the memory layout. See #235 and #241 for references and details.
2020-05-25 15:59:05 +02:00
- A few enhancements for the histogram plotting scripts and the
advanced statistics script
- Updates for the `plot_whisker.py` script, see #275 (@ghaiklor)
## Bugfixes
- Fix Spin Icon on Windows, see #229
- A few typos have been fixed, see #292 (@McMartin)
## Packaging
- `hyperfine` is now available on MacPorts for macOS, see #281 (@herbygillot)
- `hyperfine` is now available on OpenBSD, see #289 (@minusf)
Package authors: note that Hyperfine now comes with a set of shell completion files and a man page (see above)
2020-05-25 15:46:35 +02:00
# v1.9.0
## Features
- The new `--parameter-list <VAR> <VALUES>` option can be used to run
a parametrized benchmark on a user-specified list of values.
This is similar to `--parameter-scan <VAR> <MIN> <MAX>`, but doesn't
necessarily required numeric arguments.
``` bash
hyperfine --parameter-list compiler "gcc,clang" \
"{compiler} -O2 main.cpp"
```
See: #227, #234 (@JuanPotato)
- Added `none` as a possible choice for the `--style` option to
run `hyperfine` without any output, see #193 (@knidarkness)
- Added a few new scripts for plotting various types of benchmark
results (https://github.com/sharkdp/hyperfine/tree/master/scripts)
## Changes
- The `--prepare` command is now also run during the warmup
phase, see #182 (@sseemayer)
- Better estimation of the remaining benchmark time due to an update
of the `indicatif` crate.
## Other
- `hyperfine` is now available on NixOS, see #240 (@tuxinaut)
# v1.8.0
## Features
- The `--prepare <CMD>` option can now be specified multiple times to
run specific preparation commands for each of the benchmarked programs:
``` bash
hyperfine --prepare "make clean; git checkout master" "make" \
--prepare "make clean; git checkout feature" "make"
```
See: #216, #218 (@iamsauravsharma)
- Added a new [`welch_ttest.py`](https://github.com/sharkdp/hyperfine/blob/master/scripts/welch_ttest.py) script to test whether or not the two benchmark
results are the same, see #222 (@uetchy)
- The Markdown export has been improved. The relative speed is now exported
with a higher precision (see #208) and includes the standard deviation
(see #225).
## Other
- Improved documentation for [`scripts`](https://github.com/sharkdp/hyperfine/tree/master/scripts) folder (@matthieusb)
# v1.7.0
## Features
- Added a new `-D`,`--parameter-step-size` option that can be used to control
the step size for `--parameter-scan` benchmarks. In addition, decimal numbers
are now allowed for parameter scans. For example, the following command runs
`sleep 0.3`, `sleep 0.5` and `sleep 0.7`:
``` bash
hyperfine --parameter-scan delay 0.3 0.7 -D 0.2 'sleep {delay}'
```
For more details, see #184 (@piyushrungta25)
## Other
- hyperfine is now in the official Alpine repositories, see #177 (@maxice8, @5paceToast)
- hyperfine is now in the official Fedora repositories, see #196 (@ignatenkobrain)
- hyperfine is now in the official Arch Linux repositories
- hyperfine can be installed on FreeBSD, see #204 (@0mp)
- Enabled LTO for slightly smaller binary sizes, see #179 (@Calinou)
- Various small improvements all over the code base, see #194 (@phimuemue)
# v1.6.0
## Features
- Added a `-c, --cleanup <CMD>` option to execute `CMD` after the completion of all benchmarking runs for a given command. This is useful if the commands to be benchmarked produce artifacts that need to be cleaned up. See #91 (@RalfJung and @colinwahl)
- Add parameter values (for `--parameter-scan` benchmarks) to exported CSV and JSON files. See #131 (@bbannier)
- Added AsciiDoc export option, see #137 (@5paceToast)
- The relative speed is now part of the Markdown export, see #127 (@mathiasrw and @sharkdp).
- The *median* run time is now exported via CSV and JSON, see #171 (@hosewiejacke and @sharkdp).
## Other
- Hyperfine has been updated to Rust 2018 (@AnderEnder). The minimum supported Rust version is now 1.31.
# v1.5.0
## Features
- Show the number of runs in `hyperfine`s output (@tcmal)
- Added two Python scripts to post-process exported benchmark results (see [`scripts/`](https://github.com/sharkdp/hyperfine/tree/master/scripts) folder)
## Other
- Refined `--help` text for the `--export-*` flags (@psteinb)
- Added Snapcraft file (@popey)
- Small improvements in the progress bar "experience".
# v1.4.0
## Features
- Added `-S`/`--shell` option to override the default shell, see #61 (@mqudsi and @jasonpeacock)
- Added `-u`/`--time-unit` option to change the unit of time (`second` or `millisecond`), see #80 (@jasonpeacock)
- Markdown export auto-selects time unit, see #71 (@jasonpeacock)
# v1.3.0
## Feature
- Compute and print standard deviation of the speed ratio, see #83 (@Shnatsel)
- More compact output format, see #70 (@jasonpeacock)
- Added `--style=color`, see #70 (@jasonpeacock)
- Added options to specify the max/exact numbers of runs, see #77 (@orium)
## Bugfixes
- Change Windows `cmd` interpreter to `cmd.exe` to prevent accidentally calling other programs, see #74 (@tathanhdinh)
## Other
2021-05-10 14:56:01 +02:00
- Binary releases for Windows are now available, see #87
2020-05-25 15:46:35 +02:00
# v1.2.0
- Support parameters in preparation commands, see #68 (@siiptuo)
- Updated dependencies, see #69. The minimum required Rust version is now 1.24.
# v1.1.0
* Added `--show-output` option (@chrisduerr and @sevagh)
* Refactoring work (@stevepentland)
# v1.0.0
## Features
* Support for various export-formats like CSV, JSON and Markdown - see #38, #44, #49, #42 (@stevepentland)
* Summary output that compares the different benchmarks, see #6 (@stevepentland)
* Parameterized benchmarks via `-P`, `--parameter-scan <VAR> <MIN> <MAX>`, see #19
## Thanks
I'd like to say a big THANK YOU to @stevepentland for implementing new features,
for reviewing pull requests and for giving very valuable feedback.
# v0.5.0
* Proper Windows support (@stevepentland)
* Added `--style auto/basic/nocolor/full` option (@stevepentland)
* Correctly estimate the full execution time, see #27 (@rleungx)
* Added Void Linux install instructions (@wpbirney)
# v0.4.0
- New `--style` option to disable output coloring and interactive CLI features, see #24 (@stevepentland)
2021-05-10 14:56:01 +02:00
- Statistical outlier detection, see #23 #18
2020-05-25 15:46:35 +02:00
# v0.3.0
## Features
- In addition to 'real' (wall clock) time, Hyperfine can now also measure 'user' and 'system' time (see #5).
- Added `--prepare` option that can be used to clear up disk caches before timing runs, for example (see #8).
## Other
- [Arch Linux package](https://aur.archlinux.org/packages/hyperfine) for Hyperfine (@jD91mZM2).
- Ubuntu/Debian packages are now are available.
# v0.2.0
Initial public release