@@ -22,8 +22,6 @@ Write inline benchmarks using the functions:
2222 asynchronous benchmarks.
2323
2424 ``` Dart
25- // ignore_for_file: unused_local_variable
26-
2725 import 'package:benchmark_runner/benchmark_runner.dart';
2826
2927 /// Returns the value [t] after waiting for [duration].
@@ -32,14 +30,15 @@ Write inline benchmarks using the functions:
3230 }
3331
3432 void main(List<String> args) async {
35- await group('Wait for duration', () async {
33+
34+ await group('Wait for duration', () async {
3635 await asyncBenchmark('10ms', () async {
3736 await later<int>(39, Duration(milliseconds: 10));
3837 });
3938
4039 await asyncBenchmark('5ms', () async {
4140 await later<int>(27, Duration(milliseconds: 5));
42- }, emitStats: false );
41+ }, scoreEmitter: MeanEmitter() );
4342 });
4443
4544 group('Set', () async {
@@ -50,11 +49,8 @@ Write inline benchmarks using the functions:
5049 benchmark('construct', () {
5150 final set = {for (var i = 0; i < 1000; ++i) i};
5251 });
53-
54- throw 'Error in group';
5552 });
5653 }
57-
5854 ```
5955Run a * single* benchmark file as an executable:
6056``` Console
@@ -66,7 +62,7 @@ by calling the benchmark_runner and specifying a directory.
6662If no directory or file name is specified, then it defaults to ` benchmark ` :
6763
6864``` Console
69- $ dart run benchmark_runner
65+ $ dart run benchmark_runner report
7066```
7167
7268## Features and bugs
0 commit comments