Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(691)

Side by Side Diff: third_party/pkg/di/benchmark/static_injector_benchmark.dart

Issue 256553002: Revert "Update all Angular libs (run update_all.sh)." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 import 'package:benchmark_harness/benchmark_harness.dart';
1 import 'package:di/static_injector.dart'; 2 import 'package:di/static_injector.dart';
2 3
3 import 'injector_benchmark_common.dart'; 4 import 'injector_benchmark_common.dart';
4 5
5 main() { 6 main() {
6 var typeFactories = { 7 var typeFactories = new Map();
7 A: (f) => new A(f(B), f(C)), 8 typeFactories[A] = (f) => new A(f(B), f(C));
8 B: (f) => new B(f(D), f(E)), 9 typeFactories[B] = (f) => new B(f(D), f(E));
9 C: (f) => new C(), 10 typeFactories[C] = (f) => new C();
10 D: (f) => new D(), 11 typeFactories[D] = (f) => new D();
11 E: (f) => new E(), 12 typeFactories[E] = (f) => new E();
12 };
13 13
14 new InjectorBenchmark('StaticInjectorBenchmark', 14 new InjectorBenchmark('StaticInjectorBenchmark',
15 (m) => new StaticInjector(modules: m, typeFactories: typeFactories) 15 (m) => new StaticInjector(modules: m, typeFactories: typeFactories)
16 ).report(); 16 ).report();
17 } 17 }
OLDNEW
« no previous file with comments | « third_party/pkg/di/benchmark/injector_benchmark_common.dart ('k') | third_party/pkg/di/lib/annotations.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698