mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-19 20:50:26 +00:00
Update cheatsheets
This commit is contained in:
33
hyperfine
Normal file
33
hyperfine
Normal file
@@ -0,0 +1,33 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# 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}}}'`
|
||||
Reference in New Issue
Block a user