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

Unified Diff: third_party/pkg/di/benchmark/injector_benchmark_common.dart

Issue 1086713003: Remove everything but markdown from third_party (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 8 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 side-by-side diff with in-line comments
Download patch
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
deleted file mode 100644
index 88344f5450e9b0ae0ef68c36d6a9907970521a58..0000000000000000000000000000000000000000
--- a/third_party/pkg/di/benchmark/injector_benchmark_common.dart
+++ /dev/null
@@ -1,66 +0,0 @@
-library di.injector_benchmark_common;
-
-import 'package:benchmark_harness/benchmark_harness.dart';
-import 'package:di/di.dart';
-
-int count = 0;
-
-class InjectorBenchmark extends BenchmarkBase {
- var injectorFactory;
- var module;
-
- InjectorBenchmark(name, this.injectorFactory) : super(name);
-
- void run() {
- Injector injector = injectorFactory([module]);
- injector.get(A);
- injector.get(B);
-
- var childInjector = injector.createChild([module]);
- childInjector.get(A);
- childInjector.get(B);
- }
-
- setup() {
- module = new Module()
- ..type(A)
- ..type(B)
- ..type(C)
- ..type(D)
- ..type(E);
- }
-
- teardown() {
- print(count);
- }
-}
-
-class A {
- A(B b, C c) {
- count++;
- }
-}
-
-class B {
- B(D b, E c) {
- count++;
- }
-}
-
-class C {
- C() {
- count++;
- }
-}
-
-class D {
- D() {
- count++;
- }
-}
-
-class E {
- E() {
- count++;
- }
-}
« no previous file with comments | « third_party/pkg/di/benchmark/dynamic_injector_benchmark.dart ('k') | third_party/pkg/di/benchmark/module_benchmark.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698