Index: third_party/pkg/di/benchmark/injector_benchmark_common.dart |
diff --git a/third_party/pkg/di/benchmark/injector_benchmark_common.dart b/third_party/pkg/di/benchmark/injector_benchmark_common.dart |
index 88344f5450e9b0ae0ef68c36d6a9907970521a58..ce1cbd905f0b9790437dd37b31b7f4f6c2553d82 100644 |
--- a/third_party/pkg/di/benchmark/injector_benchmark_common.dart |
+++ b/third_party/pkg/di/benchmark/injector_benchmark_common.dart |
@@ -26,8 +26,12 @@ class InjectorBenchmark extends BenchmarkBase { |
..type(A) |
..type(B) |
..type(C) |
+ ..type(C, withAnnotation: AnnOne, implementedBy: COne ) |
..type(D) |
- ..type(E); |
+ ..type(E) |
+ ..type(E, withAnnotation: AnnTwo, implementedBy: ETwo ) |
+ ..type(F) |
+ ..type(G); |
} |
teardown() { |
@@ -35,6 +39,14 @@ class InjectorBenchmark extends BenchmarkBase { |
} |
} |
+class AnnOne { |
+ const AnnOne(); |
+} |
+ |
+class AnnTwo { |
+ const AnnTwo(); |
+} |
+ |
class A { |
A(B b, C c) { |
count++; |
@@ -53,6 +65,12 @@ class C { |
} |
} |
+class COne { |
+ COne() { |
+ count++; |
+ } |
+} |
+ |
class D { |
D() { |
count++; |
@@ -64,3 +82,21 @@ class E { |
count++; |
} |
} |
+ |
+class ETwo { |
+ ETwo() { |
+ count++; |
+ } |
+} |
+ |
+class F { |
+ F(@AnnOne() C c, D d) { |
+ count++; |
+ } |
+} |
+ |
+class G { |
+ G(@AnnTwo() E) { |
+ count++; |
+ } |
+} |