From e6fcd66b4697a83588263e9c91e774b4ba9ec700 Mon Sep 17 00:00:00 2001 From: Christopher Berner Date: Thu, 21 Nov 2024 07:33:55 -0800 Subject: [PATCH] Change benchmark output format to always use milliseconds --- benches/lmdb_benchmark.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/benches/lmdb_benchmark.rs b/benches/lmdb_benchmark.rs index cc4dd526..8ac3c14e 100644 --- a/benches/lmdb_benchmark.rs +++ b/benches/lmdb_benchmark.rs @@ -310,7 +310,7 @@ impl std::fmt::Display for ResultType { match self { ResultType::NA => write!(f, "N/A"), - ResultType::Duration(d) => write!(f, "{d:.2?}"), + ResultType::Duration(d) => write!(f, "{:?}ms", d.as_millis()), ResultType::SizeInBytes(s) => { let b = Byte::from_u64(*s).get_appropriate_unit(UnitType::Binary); write!(f, "{b:.2}")