mirror of
https://github.com/sharkdp/hyperfine.git
synced 2026-11-15 00:41:25 +00:00
Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9c4612401a | ||
|
|
cdbca1bf1e |
@@ -56,8 +56,8 @@ hyperfine --warmup 3 'grep -R TODO *'
|
||||
```
|
||||
|
||||
Conversely, if you want to run the benchmark for a cold cache, you can use the `-p`/`--prepare`
|
||||
option to run a special command before *each* timing run. For example, to clear Linux filesystem caches,
|
||||
you can run
|
||||
option to run a special command before *each* timing run. For example, to clear harddisk caches
|
||||
on Linux, you can run
|
||||
```sh
|
||||
sync; echo 3 | sudo tee /proc/sys/vm/drop_caches
|
||||
```
|
||||
@@ -104,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
|
||||
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'
|
||||
```
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user