bheisler / criterion.rs

Statistics-driven benchmarking library for Rust
Apache License 2.0
4.28k stars 290 forks source link

Fix plotting NaN bug #741

Open vlovich opened 8 months ago

vlovich commented 8 months ago

When bench returns a very large floating point value, the previous addition of a small number didn't actually result in a changed value. We change this to instead take the next unique value using code from nightly to accomplish this.

Fixes #720

vlovich commented 8 months ago

cc @waywardmonkeys / @lemmih

lemmih commented 7 months ago

@vlovich Looks good. Can merge if you fix the formatting.