diff options
author | Aria Shrimpton <me@aria.rip> | 2024-02-19 17:07:10 +0000 |
---|---|---|
committer | Aria Shrimpton <me@aria.rip> | 2024-02-19 17:07:37 +0000 |
commit | 57c443ab2c13923812524176a0dc7f7e3fe3fc29 (patch) | |
tree | a520a568a5e6bc4121bd406d7777031596428a54 | |
parent | 00173ffcb99511e7bc8a4f476a9dfff87d3b1c4e (diff) |
actually fix seconds suffix in benchmark outputs
-rw-r--r-- | src/crates/candelabra/src/cost/benchmark.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/crates/candelabra/src/cost/benchmark.rs b/src/crates/candelabra/src/cost/benchmark.rs index 439d42a..a5ca042 100644 --- a/src/crates/candelabra/src/cost/benchmark.rs +++ b/src/crates/candelabra/src/cost/benchmark.rs @@ -155,12 +155,12 @@ fn parse_time_str(quantity: &str, suffix: &str) -> Option<Cost> { Some( f64::from_str(quantity).ok()? * match suffix { - " s" => 1e9, + "s" => 1e9, "ms" => 1e6, "µs" => 1e3, "ns" => 1.0, "ps" => 1e-3, - _ => todo!(), + s => todo!("unrecognised suffix {}", s), }, ) } |