| Index: third_party/pkg/di/benchmark/module_benchmark.dart
|
| diff --git a/third_party/pkg/di/benchmark/module_benchmark.dart b/third_party/pkg/di/benchmark/module_benchmark.dart
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..cb18a5a926d21f6a461397d043453b120843cd15
|
| --- /dev/null
|
| +++ b/third_party/pkg/di/benchmark/module_benchmark.dart
|
| @@ -0,0 +1,23 @@
|
| +import 'package:benchmark_harness/benchmark_harness.dart';
|
| +import 'package:di/di.dart';
|
| +
|
| +import 'injector_benchmark_common.dart';
|
| +
|
| +class ModuleBenchmark extends BenchmarkBase {
|
| + var injectorFactory;
|
| +
|
| + ModuleBenchmark() : super('ModuleBenchmark');
|
| +
|
| + void run() {
|
| + var m = new Module()
|
| + ..type(A)
|
| + ..type(B)
|
| + ..type(C)
|
| + ..type(D)
|
| + ..type(E);
|
| + }
|
| +}
|
| +
|
| +main() {
|
| + new ModuleBenchmark().report();
|
| +}
|
|
|