3 ms·
What is the common consensus on benchmarking test suites in Rust? From what I understood: Criterion was the gold standard, but there is a built-in benchmark su
by dijit 4y ago
What is the common consensus on benchmarking test suites in Rust?
From what I understood: Criterion was the gold standard, but there is a built-in benchmark suite but that is only supported in Nightly.
What’s the difference?
- throwup 4y agoCriterion is still the gold standard. Pros for Criterion over the stdlib: https://github.com/bheisler/criterion.rs#features https://github.com/bheisler/criterion.rs#features Downsides of Criterion: https://bheisler.github.io/criterion.rs/book/user_guide/known_limitations.html https://bheisler.github.io/criterion.rs/book/user_guide/know...
- dijit 4y agoThanks throwup!
- dochtman 4y agoThere's the bencher crate as well, which provides a similar API to nightly through macros that work on stable. On one of the projects I maintain we reverted from criterion to bencher because the criterion results sometimes made no sense.