Skip to content
Myr

Describe the Linux cache-clearing example accurately (#945)

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 f6d5931 · Browse files · 1 file+2 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+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:README.md+2 added-2 removed
54 unmodified lines
55hyperfine --warmup 3 'grep -R TODO *'56```5758Conversely, if you want to run the benchmark for a cold cache, you can use the `-p`/`--prepare`59option to run a special command before *each* timing run. For example, to clear harddisk caches60on Linux, you can run59option to run a special command before *each* timing run. For example, to clear Linux filesystem caches,60you can run61```sh62sync; echo 3 | sudo tee /proc/sys/vm/drop_caches63```64To use this specific command with hyperfine, call `sudo -v` to temporarily gain sudo permissions
280 unmodified lines