Skip to content
Myr

Describe the default benchmark duration as an estimate (#941)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by David Peter · committed by GitHub · parent 8e12135 · Browse files · 1 file+3 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+3 added−2 removed

  • other:+3 added−2 removed

1 file+3 added−2 removed

modified:README.md+3 added-2 removed
31 unmodified lines
32hyperfine 'sleep 0.3'33```3435Hyperfine will automatically determine the number of runs to perform for each command. By default,36it will perform *at least* 10 benchmarking runs and measure for at least 3 seconds. To change this,37you can use the `-r`/`--runs` option:36it will perform *at least* 10 benchmarking runs and estimate a run count targeting roughly373 seconds, including shell overhead and preparation and conclusion commands. To set an exact38number of runs, you can use the `-r`/`--runs` option:39```sh40hyperfine --runs 5 'sleep 0.3'41```42
296 unmodified lines