feat(ElementInjector): implement ElementInjector
This commit is contained in:
11
modules/benchmarks/src/di/benchmark.dart
Normal file
11
modules/benchmarks/src/di/benchmark.dart
Normal file
@ -0,0 +1,11 @@
|
||||
library injector_get_benchmark;
|
||||
|
||||
import './injector_instantiate_benchmark.dart' as b;
|
||||
import 'dart:js' as js;
|
||||
|
||||
main () {
|
||||
js.context['benchmarkSteps'].add(new js.JsObject.jsify({
|
||||
"name": "Injector.instantiate",
|
||||
"fn": new js.JsFunction.withThis((_) => b.run())
|
||||
}));
|
||||
}
|
@ -10,8 +10,6 @@ export function run () {
|
||||
var child = injector.createChild([E]);
|
||||
child.get(E);
|
||||
}
|
||||
|
||||
console.log(count)
|
||||
}
|
||||
|
||||
class A {
|
||||
|
Reference in New Issue
Block a user