mirror of
https://github.com/pese-git/cherrypick.git
synced 2026-01-24 05:25:19 +00:00
refactor(structure): move benchmarks, scenarios, adapters, utils to dedicated folders; update imports/project layout
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
import 'package:benchmark_harness/benchmark_harness.dart';
|
||||
import 'package:benchmark_cherrypick/di_adapters/di_adapter.dart';
|
||||
import 'package:benchmark_cherrypick/scenarios/async_chain_module.dart';
|
||||
|
||||
class AsyncChainBenchmark extends AsyncBenchmarkBase {
|
||||
final DIAdapter di;
|
||||
AsyncChainBenchmark(this.di) : super('AsyncChain (A->B->C, async)');
|
||||
|
||||
@override
|
||||
Future<void> setup() async {
|
||||
di.setupModules([AsyncChainModule()]);
|
||||
}
|
||||
|
||||
@override
|
||||
Future<void> teardown() async {
|
||||
di.teardown();
|
||||
}
|
||||
|
||||
@override
|
||||
Future<void> run() async {
|
||||
await di.resolveAsync<AsyncC>();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user