mirror of
https://github.com/pese-git/cherrypick.git
synced 2026-01-24 05:25:19 +00:00
fix: universal benchmarks and DI registration; proper named binding; robust override support for cherrypick and get_it; improved CLI args
This commit is contained in:
@@ -2,6 +2,7 @@ import 'package:benchmark_harness/benchmark_harness.dart';
|
||||
import 'package:benchmark_cherrypick/di_adapters/di_adapter.dart';
|
||||
import 'package:benchmark_cherrypick/scenarios/universal_chain_module.dart';
|
||||
import 'package:benchmark_cherrypick/scenarios/universal_service.dart';
|
||||
import 'package:benchmark_cherrypick/scenarios/di_universal_registration.dart';
|
||||
|
||||
class UniversalChainAsyncBenchmark extends AsyncBenchmarkBase {
|
||||
final DIAdapter di;
|
||||
@@ -18,16 +19,14 @@ class UniversalChainAsyncBenchmark extends AsyncBenchmarkBase {
|
||||
|
||||
@override
|
||||
Future<void> setup() async {
|
||||
di.setupDependencies((scope) {
|
||||
scope.installModules([
|
||||
UniversalChainModule(
|
||||
chainCount: chainCount,
|
||||
nestingDepth: nestingDepth,
|
||||
bindingMode: mode,
|
||||
scenario: UniversalScenario.asyncChain,
|
||||
),
|
||||
]);
|
||||
});
|
||||
di.setupDependencies(getUniversalRegistration(
|
||||
di,
|
||||
chainCount: chainCount,
|
||||
nestingDepth: nestingDepth,
|
||||
bindingMode: mode,
|
||||
scenario: UniversalScenario.asyncChain,
|
||||
));
|
||||
await di.waitForAsyncReady();
|
||||
}
|
||||
|
||||
@override
|
||||
|
||||
Reference in New Issue
Block a user