mirror of
https://github.com/sharkdp/hyperfine.git
synced 2026-11-14 16:31:31 +00:00
Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fa89267547 |
@@ -33,8 +33,9 @@ hyperfine 'sleep 0.3'
|
||||
```
|
||||
|
||||
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,
|
||||
you can use the `-r`/`--runs` option:
|
||||
it will perform *at least* 10 benchmarking runs and estimate a run count targeting roughly
|
||||
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
|
||||
hyperfine --runs 5 'sleep 0.3'
|
||||
```
|
||||
@@ -104,7 +105,7 @@ If you want to run a benchmark *without an intermediate shell*, you can use the
|
||||
option. This is helpful for very fast commands (< 5 ms) where the shell startup overhead correction would
|
||||
produce a significant amount of noise. Note that you cannot use shell syntax like `*` or `~` in this case.
|
||||
```
|
||||
hyperfine -N 'grep -R TODO /home/user'
|
||||
hyperfine -N 'grep TODO /home/user'
|
||||
```
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user