Update benchmarks, lock files, and related documentation

This commit is contained in:
Sergey Penkovsky
2025-08-01 08:40:10 +03:00
parent 882ee92000
commit 1682ed9c08
10 changed files with 42 additions and 18 deletions

View File

@@ -17,12 +17,12 @@
| Сценарий | RunTime (мкс) |
|----------------------------------------------------|--------------|
| RegisterAndResolve | 0.1976 |
| ChainSingleton (A->B->C, singleton) | 0.2721 |
| ChainFactory (A->B->C, factory) | 0.6690 |
| NamedResolve (by name) | 0.2018 |
| AsyncChain (A->B->C, async) | 1.2732 |
| ScopeOverride (child overrides parent) | 0.1962 |
| RegisterAndResolve | 0.3407 |
| ChainSingleton (A->B->C, singleton) | 0.3777 |
| ChainFactory (A->B->C, factory) | 0.9688 |
| NamedResolve (by name) | 0.3878 |
| AsyncChain (A->B->C, async) | 1.8006 |
| ScopeOverride (child overrides parent) | 0.3477 |
## Как запускать

View File

@@ -26,6 +26,8 @@ class AsyncChainBenchmark extends AsyncBenchmarkBase {
@override
Future<void> setup() async {
CherryPick.disableGlobalCycleDetection();
CherryPick.disableGlobalCrossScopeCycleDetection();
scope = CherryPick.openRootScope();
scope.installModules([AsyncChainModule()]);
}

View File

@@ -18,6 +18,8 @@ class RegisterAndResolveBenchmark extends BenchmarkBase {
@override
void setup() {
CherryPick.disableGlobalCycleDetection();
CherryPick.disableGlobalCrossScopeCycleDetection();
scope = CherryPick.openRootScope();
scope.installModules([AppModule()]);

View File

@@ -52,6 +52,8 @@ class ChainFactoryBenchmark extends BenchmarkBase {
late Scope scope;
@override
void setup() {
CherryPick.disableGlobalCycleDetection();
CherryPick.disableGlobalCrossScopeCycleDetection();
scope = CherryPick.openRootScope();
scope.installModules([ChainFactoryModule()]);
}

View File

@@ -25,6 +25,8 @@ class ScopeOverrideBenchmark extends BenchmarkBase {
late Scope child;
@override
void setup() {
CherryPick.disableGlobalCycleDetection();
CherryPick.disableGlobalCrossScopeCycleDetection();
parent = CherryPick.openRootScope();
parent.installModules([ParentModule()]);
child = parent.openSubScope('child');

View File

@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="WEB_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/test" isTestSource="true" />
<excludeFolder url="file://$MODULE_DIR$/.dart_tool" />
<excludeFolder url="file://$MODULE_DIR$/.pub" />
<excludeFolder url="file://$MODULE_DIR$/build" />
</content>
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" name="Dart SDK" level="project" />
<orderEntry type="library" name="Dart Packages" level="project" />
</component>
</module>

View File

@@ -31,7 +31,7 @@ packages:
path: "../cherrypick"
relative: true
source: path
version: "2.2.0"
version: "3.0.0-dev.1"
exception_templates:
dependency: transitive
description:
@@ -57,4 +57,4 @@ packages:
source: hosted
version: "1.17.0"
sdks:
dart: ">=3.5.2 <4.0.0"
dart: ">=3.5.0 <4.0.0"