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

This commit is contained in:
David Peter authored and GitHub committed 2026-10-02 11:53:16 +02:00
1 parent 8e121352b8
commit 0bb209e509
1 file changed
+3 -2
+3 -2
View File
@@ -33,8 +33,9 @@ hyperfine 'sleep 0.3'
``` ```
Hyperfine will automatically determine the number of runs to perform for each command. By default, Hyperfine will automatically determine the number of runs to perform for each command. By default,
it will perform *at least* 10 benchmarking runs and measure for at least 3 seconds. To change this, it will perform *at least* 10 benchmarking runs and estimate a run count targeting roughly
you can use the `-r`/`--runs` option: 3 seconds, including shell overhead and preparation and conclusion commands. To set an exact
number of runs, you can use the `-r`/`--runs` option:
```sh ```sh
hyperfine --runs 5 'sleep 0.3' hyperfine --runs 5 'sleep 0.3'
``` ```