1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-23 00:02:07 +02:00
tldr/pages/common/hyperfine.md
K.B.Dharun Krishna dc1569dca1
pages/common: fix typos in placeholders (#11949)
Signed-off-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
2023-12-31 12:30:11 +05:30

28 lines
732 B
Markdown

# hyperfine
> A command-line benchmarking tool.
> More information: <https://github.com/sharkdp/hyperfine/>.
- Run a basic benchmark, performing at least 10 runs:
`hyperfine '{{make}}'`
- Run a comparative benchmark:
`hyperfine '{{make target1}}' '{{make target2}}'`
- 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}}}'`