mirror of
https://github.com/pese-git/cherrypick.git
synced 2026-01-23 21:13:35 +00:00
refactor(structure): move benchmarks, scenarios, adapters, utils to dedicated folders; update imports/project layout
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
import 'package:benchmark_harness/benchmark_harness.dart';
|
||||
import 'package:benchmark_cherrypick/di_adapters/di_adapter.dart';
|
||||
import 'package:benchmark_cherrypick/scenarios/named_module.dart';
|
||||
|
||||
class NamedResolveBenchmark extends BenchmarkBase {
|
||||
final DIAdapter di;
|
||||
|
||||
NamedResolveBenchmark(this.di) : super('NamedResolve (by name)');
|
||||
|
||||
@override
|
||||
void setup() {
|
||||
di.setupModules([NamedModule()]);
|
||||
}
|
||||
|
||||
@override
|
||||
void teardown() => di.teardown();
|
||||
|
||||
@override
|
||||
void run() {
|
||||
di.resolve<Object>(named: 'impl2');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user