Increase precision of benchmarking results summary
@@ -75,14 +75,14 @@ impl fmt::Display for NsFormatter {
}
if self.0 < 1_000_000 {
- return write!(f, "{:.2} ms", v as f64 / 1_000_000.0)
+ return write!(f, "{:.4} ms", v as f64 / 1_000_000.0)
}
if self.0 < 100_000_000 {
- return write!(f, "{} ms", v as f64 / 1_000_000.0)
+ return write!(f, "{:.1} ms", v as f64 / 1_000_000.0)
}
- write!(f, "{:.2} s", v as f64 / 1_000_000_000.0)
+ write!(f, "{:.4} s", v as f64 / 1_000_000_000.0)
}
}
