mirror of
https://github.com/pese-git/cherrypick.git
synced 2026-01-23 21:13:35 +00:00
Update benchmarks, lock files, and related documentation
This commit is contained in:
@@ -17,12 +17,12 @@
|
|||||||
|
|
||||||
| Сценарий | RunTime (мкс) |
|
| Сценарий | RunTime (мкс) |
|
||||||
|----------------------------------------------------|--------------|
|
|----------------------------------------------------|--------------|
|
||||||
| RegisterAndResolve | 0.1976 |
|
| RegisterAndResolve | 0.3407 |
|
||||||
| ChainSingleton (A->B->C, singleton) | 0.2721 |
|
| ChainSingleton (A->B->C, singleton) | 0.3777 |
|
||||||
| ChainFactory (A->B->C, factory) | 0.6690 |
|
| ChainFactory (A->B->C, factory) | 0.9688 |
|
||||||
| NamedResolve (by name) | 0.2018 |
|
| NamedResolve (by name) | 0.3878 |
|
||||||
| AsyncChain (A->B->C, async) | 1.2732 |
|
| AsyncChain (A->B->C, async) | 1.8006 |
|
||||||
| ScopeOverride (child overrides parent) | 0.1962 |
|
| ScopeOverride (child overrides parent) | 0.3477 |
|
||||||
|
|
||||||
## Как запускать
|
## Как запускать
|
||||||
|
|
||||||
|
|||||||
@@ -26,6 +26,8 @@ class AsyncChainBenchmark extends AsyncBenchmarkBase {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
Future<void> setup() async {
|
Future<void> setup() async {
|
||||||
|
CherryPick.disableGlobalCycleDetection();
|
||||||
|
CherryPick.disableGlobalCrossScopeCycleDetection();
|
||||||
scope = CherryPick.openRootScope();
|
scope = CherryPick.openRootScope();
|
||||||
scope.installModules([AsyncChainModule()]);
|
scope.installModules([AsyncChainModule()]);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,6 +18,8 @@ class RegisterAndResolveBenchmark extends BenchmarkBase {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
void setup() {
|
void setup() {
|
||||||
|
CherryPick.disableGlobalCycleDetection();
|
||||||
|
CherryPick.disableGlobalCrossScopeCycleDetection();
|
||||||
scope = CherryPick.openRootScope();
|
scope = CherryPick.openRootScope();
|
||||||
scope.installModules([AppModule()]);
|
scope.installModules([AppModule()]);
|
||||||
|
|
||||||
|
|||||||
@@ -52,6 +52,8 @@ class ChainFactoryBenchmark extends BenchmarkBase {
|
|||||||
late Scope scope;
|
late Scope scope;
|
||||||
@override
|
@override
|
||||||
void setup() {
|
void setup() {
|
||||||
|
CherryPick.disableGlobalCycleDetection();
|
||||||
|
CherryPick.disableGlobalCrossScopeCycleDetection();
|
||||||
scope = CherryPick.openRootScope();
|
scope = CherryPick.openRootScope();
|
||||||
scope.installModules([ChainFactoryModule()]);
|
scope.installModules([ChainFactoryModule()]);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -25,6 +25,8 @@ class ScopeOverrideBenchmark extends BenchmarkBase {
|
|||||||
late Scope child;
|
late Scope child;
|
||||||
@override
|
@override
|
||||||
void setup() {
|
void setup() {
|
||||||
|
CherryPick.disableGlobalCycleDetection();
|
||||||
|
CherryPick.disableGlobalCrossScopeCycleDetection();
|
||||||
parent = CherryPick.openRootScope();
|
parent = CherryPick.openRootScope();
|
||||||
parent.installModules([ParentModule()]);
|
parent.installModules([ParentModule()]);
|
||||||
child = parent.openSubScope('child');
|
child = parent.openSubScope('child');
|
||||||
|
|||||||
16
benchmark_cherrypick/melos_benchmark_cherrypick.iml
Normal file
16
benchmark_cherrypick/melos_benchmark_cherrypick.iml
Normal 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>
|
||||||
@@ -31,7 +31,7 @@ packages:
|
|||||||
path: "../cherrypick"
|
path: "../cherrypick"
|
||||||
relative: true
|
relative: true
|
||||||
source: path
|
source: path
|
||||||
version: "2.2.0"
|
version: "3.0.0-dev.1"
|
||||||
exception_templates:
|
exception_templates:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
@@ -57,4 +57,4 @@ packages:
|
|||||||
source: hosted
|
source: hosted
|
||||||
version: "1.17.0"
|
version: "1.17.0"
|
||||||
sdks:
|
sdks:
|
||||||
dart: ">=3.5.2 <4.0.0"
|
dart: ">=3.5.0 <4.0.0"
|
||||||
|
|||||||
@@ -127,7 +127,7 @@ packages:
|
|||||||
path: "../../cherrypick"
|
path: "../../cherrypick"
|
||||||
relative: true
|
relative: true
|
||||||
source: path
|
source: path
|
||||||
version: "2.2.0"
|
version: "3.0.0-dev.1"
|
||||||
cherrypick_annotations:
|
cherrypick_annotations:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
@@ -141,7 +141,7 @@ packages:
|
|||||||
path: "../../cherrypick_flutter"
|
path: "../../cherrypick_flutter"
|
||||||
relative: true
|
relative: true
|
||||||
source: path
|
source: path
|
||||||
version: "1.1.2"
|
version: "1.1.3-dev.1"
|
||||||
cherrypick_generator:
|
cherrypick_generator:
|
||||||
dependency: "direct dev"
|
dependency: "direct dev"
|
||||||
description:
|
description:
|
||||||
|
|||||||
@@ -151,7 +151,7 @@ packages:
|
|||||||
path: "../../cherrypick"
|
path: "../../cherrypick"
|
||||||
relative: true
|
relative: true
|
||||||
source: path
|
source: path
|
||||||
version: "2.2.0"
|
version: "3.0.0-dev.1"
|
||||||
cherrypick_annotations:
|
cherrypick_annotations:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
|
|||||||
14
pubspec.lock
14
pubspec.lock
@@ -5,23 +5,23 @@ packages:
|
|||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
name: _fe_analyzer_shared
|
name: _fe_analyzer_shared
|
||||||
sha256: "45cfa8471b89fb6643fe9bf51bd7931a76b8f5ec2d65de4fb176dba8d4f22c77"
|
sha256: "16e298750b6d0af7ce8a3ba7c18c69c3785d11b15ec83f6dcd0ad2a0009b3cab"
|
||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "73.0.0"
|
version: "76.0.0"
|
||||||
_macros:
|
_macros:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description: dart
|
description: dart
|
||||||
source: sdk
|
source: sdk
|
||||||
version: "0.3.2"
|
version: "0.3.3"
|
||||||
analyzer:
|
analyzer:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
name: analyzer
|
name: analyzer
|
||||||
sha256: "4959fec185fe70cce007c57e9ab6983101dbe593d2bf8bbfb4453aaec0cf470a"
|
sha256: "1f14db053a8c23e260789e9b0980fa27f2680dd640932cae5e1137cce0e46e1e"
|
||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "6.8.0"
|
version: "6.11.0"
|
||||||
ansi_styles:
|
ansi_styles:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
@@ -298,10 +298,10 @@ packages:
|
|||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
name: macros
|
name: macros
|
||||||
sha256: "0acaed5d6b7eab89f63350bccd82119e6c602df0f391260d0e32b5e23db79536"
|
sha256: "1d9e801cd66f7ea3663c45fc708450db1fa57f988142c64289142c9b7ee80656"
|
||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "0.1.2-main.4"
|
version: "0.1.3-main.0"
|
||||||
matcher:
|
matcher:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
|
|||||||
Reference in New Issue
Block a user