1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-05 13:15:24 +02:00
tldr/pages/common/hyperfine.md
Managor 23340cc6e0
common/*: reduce usage of "command-line" (part 1) (#16949)
Co-authored-by: Dylan <145150333+dmmqz@users.noreply.github.com>
Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>
2025-06-29 11:48:18 +03:00

28 lines
777 B
Markdown

# hyperfine
> A 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 {{[-m|--min-runs]}} {{7}} '{{make}}'`
- Perform benchmark with warmup:
`hyperfine {{[-w|--warmup]}} {{5}} '{{make}}'`
- Run a command before each benchmark run (to clear caches, etc.):
`hyperfine {{[-p|--prepare]}} '{{make clean}}' '{{make}}'`
- Run a benchmark where a single parameter changes for each run:
`hyperfine {{[-p|--prepare]}} '{{make clean}}' {{[-P|--parameter-scan]}} {{num_threads}} {{1}} {{10}} '{{make {{[-j|--jobs]}} {num_threads}}}'`