This commit is contained in:
2025-10-30 12:53:59 -07:00
parent 273c5f1787
commit 8651f62c6b
+3 -5
View File
@@ -52,11 +52,9 @@ fn main() {
Timer::EncodeStatestream, Timer::EncodeStatestream,
] { ] {
let times = stats(timer); let times = stats(timer);
println!( #[allow(clippy::cast_precision_loss)]
"{timer:?}: {} ({:.8}ms avg)", let avg_time = (times.micros as f64 / times.count as f64) / 1000.0;
times.count, println!("{timer:?}: {} ({avg_time:.8}ms avg)", times.count,);
((times.micros as f64 / times.count as f64) / 1000.0)
);
} }
for counter in [ for counter in [
Counter::EncReusedBlocks, Counter::EncReusedBlocks,