mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-24 03:15:23 +02:00
hyperfine: add page (#2368)
This commit is contained in:
parent
7b6f488770
commit
5e0e5ddd44
1 changed files with 23 additions and 0 deletions
23
pages/common/hyperfine.md
Normal file
23
pages/common/hyperfine.md
Normal file
|
@ -0,0 +1,23 @@
|
|||
# hyperfine
|
||||
|
||||
> A command-line benchmarking tool.
|
||||
|
||||
- Run a basic benchmark:
|
||||
|
||||
`hyperfine '{{make}}'`
|
||||
|
||||
- Change minimum number of benchmarking runs:
|
||||
|
||||
`hyperfine --min-runs {{7}} '{{make}}'`
|
||||
|
||||
- Perform benchmark with warmup:
|
||||
|
||||
`hyperfine --warmup {{5}} '{{make}}'`
|
||||
|
||||
- Run a command before each benchmark run (to clear caches, etc.):
|
||||
|
||||
`hyperfine --prepare '{{make clean}}' '{{make}}'`
|
||||
|
||||
- Run a benchmark where a single parameter changes for each run:
|
||||
|
||||
`hyperfine --prepare '{{make clean}}' --parameter-scan num_threads {{1}} {{10}} '{{make -j {num_threads}}}'`
|
Loading…
Add table
Reference in a new issue