Rename variable millisecondsPerExercise to microsecondsPerExercise

Closes https://github.com/dart-lang/sdk/pull/60286

GitOrigin-RevId: 051278201d6f0c7f362e618b51a4a493cec8929f
Change-Id: Icd98294879478b754809b45a938591e07d64543a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/414480
Reviewed-by: Slava Egorov <vegorov@google.com>
Commit-Queue: Slava Egorov <vegorov@google.com>
This commit is contained in:
Mo Luo
2025-03-10 03:17:30 -07:00
committed by Commit Queue
parent 4ab8296f73
commit 078ddac8a7
@@ -42,10 +42,10 @@ class Base extends BenchmarkBase {
@override
void report() {
final double millisecondsPerExercise = measure();
final double microsecondsPerExercise = measure();
// Report time in nanoseconds per element. [exercise] runs [run] 10 times,
// and each [run] does 10 summations.
final double score = millisecondsPerExercise * 1000.0 / n / 10.0 / 10.0;
final double score = microsecondsPerExercise * 1000.0 / n / 10.0 / 10.0;
print('$name(RunTime): $score ns.');
}