diff options
| author | Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de> | 2023-08-11 15:22:23 +0000 |
|---|---|---|
| committer | Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de> | 2023-08-11 15:22:23 +0000 |
| commit | cd8f12dd369262a167d79d19ee775d4bcb8b8a81 (patch) | |
| tree | 17aeb9708733ee16e3d0f6f0a5431d78a1c448d6 | |
| parent | a7af8bc6ec032f54e3dbcd2a91469c34a6fef678 (diff) | |
| download | rust-cd8f12dd369262a167d79d19ee775d4bcb8b8a81.tar.gz rust-cd8f12dd369262a167d79d19ee775d4bcb8b8a81.zip | |
Show correct measurements in SPEEDTEST
| -rw-r--r-- | tests/compile-test.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/compile-test.rs b/tests/compile-test.rs index e46f8bf6fab..78cb076ebca 100644 --- a/tests/compile-test.rs +++ b/tests/compile-test.rs @@ -349,7 +349,11 @@ fn main() { f(); sum += start.elapsed().as_millis(); } - println!("average {} time: {} millis.", speedtest.to_uppercase(), sum / 1000); + println!( + "average {} time: {} millis.", + speedtest.to_uppercase(), + sum / u128::from(iterations) + ); } else { run_ui(); run_ui_toml(); |
