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

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

Issue 180843004: Revert revision 33053 (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 10 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
« no previous file with comments | « third_party/pkg/di/REVISION ('k') | third_party/pkg/di/lib/dynamic_injector.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/pkg/di/benchmark/injector_benchmark_common.dart
===================================================================
--- third_party/pkg/di/benchmark/injector_benchmark_common.dart (revision 33054)
+++ third_party/pkg/di/benchmark/injector_benchmark_common.dart (working copy)
@@ -3,8 +3,6 @@
import 'package:benchmark_harness/benchmark_harness.dart';
import 'package:di/di.dart';
-int count = 0;
-
class InjectorBenchmark extends BenchmarkBase {
var injectorFactory;
var module;
@@ -29,38 +27,21 @@
..type(D)
..type(E);
}
-
- teardown() {
- print(count);
- }
}
class A {
- A(B b, C c) {
- count++;
- }
+ A(B b, C c);
}
class B {
- B(D b, E c) {
- count++;
- }
+ B(D b, E c);
}
class C {
- C() {
- count++;
- }
}
class D {
- D() {
- count++;
- }
}
class E {
- E() {
- count++;
- }
}
« no previous file with comments | « third_party/pkg/di/REVISION ('k') | third_party/pkg/di/lib/dynamic_injector.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698