Criterion benchmarks are incompatible with critcmp #4037
Labels
component/build-time
Component: Compilation time
component/test-bench
Component: Unit tests, Integration tests, CI, Benchmarks, etc.
help wanted
Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.
status/mentor
This issue is currently mentored
Bug Report
What version of Rust are you using?
nightly-2018-07-18-x86_64-unknown-linux-gnu
nightly-2018-12-06-x86_64-unknown-linux-gnu
What operating system and CPU are you using?
EC2 t2.xlarge, Ubuntu.
What did you do?
I am trying to automatically generate benchmark comparisions of all TiKV benchmarks. The cargo-benchcmp tool works for the standard benchmarker, but critcmp does not work on our Criterion benchmarks.
What did you expect to see?
Normal critcmp output comparing criterion 'baselines'
What did you see instead?
Two of the three criterion benchmark crates don't present the standard criterion CLI so they ignore the necessary
--save-baseline
flag.In
hierarchy
, the only benchmark crate that presents the criterion CLI, there is an error:The solution to this is twofold:
criterion_main!
.The text was updated successfully, but these errors were encountered: