Skip to content

Commit

Permalink
Change benchmark output format to always use milliseconds
Browse files Browse the repository at this point in the history
  • Loading branch information
cberner committed Nov 22, 2024
1 parent 89a8236 commit f20d6d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion benches/lmdb_benchmark.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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}")
Expand Down

0 comments on commit f20d6d3

Please sign in to comment.