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"

View File

@@ -127,7 +127,7 @@ packages:
path: "../../cherrypick"
relative: true
source: path
version: "2.2.0"
version: "3.0.0-dev.1"
cherrypick_annotations:
dependency: "direct main"
description:
@@ -141,7 +141,7 @@ packages:
path: "../../cherrypick_flutter"
relative: true
source: path
version: "1.1.2"
version: "1.1.3-dev.1"
cherrypick_generator:
dependency: "direct dev"
description:

View File

@@ -151,7 +151,7 @@ packages:
path: "../../cherrypick"
relative: true
source: path
version: "2.2.0"
version: "3.0.0-dev.1"
cherrypick_annotations:
dependency: "direct main"
description:

View File

@@ -5,23 +5,23 @@ packages:
dependency: transitive
description:
name: _fe_analyzer_shared
sha256: "45cfa8471b89fb6643fe9bf51bd7931a76b8f5ec2d65de4fb176dba8d4f22c77"
sha256: "16e298750b6d0af7ce8a3ba7c18c69c3785d11b15ec83f6dcd0ad2a0009b3cab"
url: "https://pub.dev"
source: hosted
version: "73.0.0"
version: "76.0.0"
_macros:
dependency: transitive
description: dart
source: sdk
version: "0.3.2"
version: "0.3.3"
analyzer:
dependency: transitive
description:
name: analyzer
sha256: "4959fec185fe70cce007c57e9ab6983101dbe593d2bf8bbfb4453aaec0cf470a"
sha256: "1f14db053a8c23e260789e9b0980fa27f2680dd640932cae5e1137cce0e46e1e"
url: "https://pub.dev"
source: hosted
version: "6.8.0"
version: "6.11.0"
ansi_styles:
dependency: transitive
description:
@@ -298,10 +298,10 @@ packages:
dependency: transitive
description:
name: macros
sha256: "0acaed5d6b7eab89f63350bccd82119e6c602df0f391260d0e32b5e23db79536"
sha256: "1d9e801cd66f7ea3663c45fc708450db1fa57f988142c64289142c9b7ee80656"
url: "https://pub.dev"
source: hosted
version: "0.1.2-main.4"
version: "0.1.3-main.0"
matcher:
dependency: transitive
description: