hypcmp-0.3.2 is not a library.
hypcmp
A way to benchmark applications with hyperfine
using a TOML configuration
file. This also enables benchmarking across commits using commits = [...]
attribute.
Benchmarking across commits is only possible if the git status is clean.
Examples
= [ # common hyperfine parameters for all runs
"--runs", "5",
"--warmup", "3",
"--style", "none",
]
[]
= "dd if=Cargo.toml of=/tmp/Cargo.toml.dd"
[]
= "cp Cargo.toml /tmp/Cargo.toml.cp"
[]
= "rsync -a Cargo.toml /tmp/Cargo.toml.rsync"
A more complicated example:
= [ # common hyperfine parameters for all runs
"--runs", "5",
"--warmup", "3",
"--parameter-list", "ifile", "Cargo.toml,README.md",
"--parameter-list", "ofile", "/tmp/test.raw",
]
[]
= ["main"] # can be full commit id, an abbreviated id w/ 7 letters, tag or branch
= "dd if={ifile} of={ofile}"
= "rm {ofile}"
[]
= "cp {ifile} {ofile}"
[]
= "rsync -a {ifile} {ofile}"
Further examples are given in the examples folder.