2018-10-02 22:02:57 +01:00
|
|
|
# hyperfine
|
|
|
|
|
|
|
|
> A command-line benchmarking tool.
|
2019-01-30 11:19:23 +00:00
|
|
|
> Homepage: <https://github.com/sharkdp/hyperfine/>.
|
2018-10-02 22:02:57 +01:00
|
|
|
|
2018-10-04 20:03:37 +01:00
|
|
|
- Run a basic benchmark, performing at least 10 runs:
|
2018-10-02 22:02:57 +01:00
|
|
|
|
|
|
|
`hyperfine '{{make}}'`
|
|
|
|
|
2018-10-04 20:03:37 +01:00
|
|
|
- Run a comparative benchmark:
|
|
|
|
|
2018-10-05 14:26:21 +01:00
|
|
|
`hyperfine '{{make target1}}' '{{make target2}}'`
|
2018-10-04 20:03:37 +01:00
|
|
|
|
2018-10-02 22:02:57 +01:00
|
|
|
- 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}}}'`
|