Skip to content

Commit cd8f12d

Browse files
committed
Show correct measurements in SPEEDTEST
1 parent a7af8bc commit cd8f12d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/compile-test.rs

+5-1
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,11 @@ fn main() {
349349
f();
350350
sum += start.elapsed().as_millis();
351351
}
352-
println!("average {} time: {} millis.", speedtest.to_uppercase(), sum / 1000);
352+
println!(
353+
"average {} time: {} millis.",
354+
speedtest.to_uppercase(),
355+
sum / u128::from(iterations)
356+
);
353357
} else {
354358
run_ui();
355359
run_ui_toml();

0 commit comments

Comments
 (0)