Compare commits

..
Author SHA1 Message Date
David Peter 9c4612401a Use recursive grep in the no-shell example 2026-10-02 11:47:40 +02:00
David Peter cdbca1bf1e Use a file in the no-shell grep example 2026-10-02 11:29:13 +02:00
+3 -4
View File
@@ -33,9 +33,8 @@ 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 estimate a run count targeting roughly it will perform *at least* 10 benchmarking runs and measure for at least 3 seconds. To change this,
3 seconds, including shell overhead and preparation and conclusion commands. To set an exact you can use the `-r`/`--runs` option:
number of runs, you can use the `-r`/`--runs` option:
```sh ```sh
hyperfine --runs 5 'sleep 0.3' hyperfine --runs 5 'sleep 0.3'
``` ```
@@ -105,7 +104,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 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. produce a significant amount of noise. Note that you cannot use shell syntax like `*` or `~` in this case.
``` ```
hyperfine -N 'grep TODO /home/user' hyperfine -N 'grep -R TODO /home/user'
``` ```