@@ -30,8 +30,8 @@ void reportMean(Benchmark instance, ColorPrintEmitter emitter) {
3030 final watch = Stopwatch ()..start ();
3131 final value = instance.measure ();
3232 watch.stop ();
33- final runtime = watch.elapsed.msus.style (ColorProfile .dim);
34- emitter.emit ('$runtime ${instance .description }' , value);
33+ final duration = watch.elapsed.msus.style (ColorProfile .dim);
34+ emitter.emit ('$duration ${instance .description }' , value);
3535}
3636
3737/// Generic function that reports benchmark scores by calling an emitter [E] .
@@ -146,7 +146,7 @@ class Benchmark extends BenchmarkBase {
146146 final watch = Stopwatch ()..start ();
147147 final sample = this .sample ();
148148 return Score (
149- runtime : watch.elapsed,
149+ duration : watch.elapsed,
150150 sample: sample.scores,
151151 innerIter: sample.innerIter,
152152 );
@@ -196,7 +196,7 @@ void benchmark<E extends ColorPrintEmitter>(
196196 error,
197197 stack,
198198 description: instance.description,
199- runtime : watch.elapsed,
199+ duration : watch.elapsed,
200200 errorMark: benchmarkError,
201201 );
202202 return ;
@@ -233,7 +233,7 @@ void benchmark<E extends ColorPrintEmitter>(
233233 error,
234234 stack,
235235 description: instance.description,
236- runtime : watch.elapsed,
236+ duration : watch.elapsed,
237237 errorMark: benchmarkError,
238238 );
239239 }
@@ -244,7 +244,7 @@ void benchmark<E extends ColorPrintEmitter>(
244244 error,
245245 stack,
246246 description: instance.description,
247- runtime : watch.elapsed,
247+ duration : watch.elapsed,
248248 errorMark: benchmarkError,
249249 );
250250 }),
0 commit comments