diff --git a/benchmark_cherrypick/README.md b/benchmark_di/README.md similarity index 95% rename from benchmark_cherrypick/README.md rename to benchmark_di/README.md index 8bad6b0..e93506c 100644 --- a/benchmark_cherrypick/README.md +++ b/benchmark_di/README.md @@ -1,10 +1,10 @@ -# benchmark_cherrypick +# benchmark_di _Benchmark suite for cherrypick DI container, get_it, and other DI solutions._ ## Overview -benchmark_cherrypick is a flexible benchmarking suite to compare DI containers (like cherrypick and get_it) on synthetic, deep, and real-world dependency scenarios – chains, factories, async, named, override, etc. +benchmark_di is a flexible benchmarking suite to compare DI containers (like cherrypick and get_it) on synthetic, deep, and real-world dependency scenarios – chains, factories, async, named, override, etc. **Features:** - Universal registration layer and modular scenario setup (works with any DI) diff --git a/benchmark_cherrypick/README.ru.md b/benchmark_di/README.ru.md similarity index 93% rename from benchmark_cherrypick/README.ru.md rename to benchmark_di/README.ru.md index b3795b2..9e80424 100644 --- a/benchmark_cherrypick/README.ru.md +++ b/benchmark_di/README.ru.md @@ -1,10 +1,10 @@ -# benchmark_cherrypick +# benchmark_di _Бенчмаркинговый набор для cherrypick, get_it и других DI-контейнеров._ ## Общее описание -benchmark_cherrypick — это современный фреймворк для измерения производительности DI-контейнеров (как cherrypick, так и get_it) на синтетических, сложных и реальных сценариях: цепочки зависимостей, factory, async, именованные биндинги, override и пр. +benchmark_di — это современный фреймворк для измерения производительности DI-контейнеров (как cherrypick, так и get_it) на синтетических, сложных и реальных сценариях: цепочки зависимостей, factory, async, именованные биндинги, override и пр. **Возможности:** - Универсальный слой регистрации сценариев (работает с любым DI) diff --git a/benchmark_cherrypick/analysis_options.yaml b/benchmark_di/analysis_options.yaml similarity index 100% rename from benchmark_cherrypick/analysis_options.yaml rename to benchmark_di/analysis_options.yaml diff --git a/benchmark_cherrypick/bin/main.dart b/benchmark_di/bin/main.dart similarity index 58% rename from benchmark_cherrypick/bin/main.dart rename to benchmark_di/bin/main.dart index 3c51a09..985adbd 100644 --- a/benchmark_cherrypick/bin/main.dart +++ b/benchmark_di/bin/main.dart @@ -1,4 +1,4 @@ -import 'package:benchmark_cherrypick/cli/benchmark_cli.dart'; +import 'package:benchmark_di/cli/benchmark_cli.dart'; Future main(List args) async { await BenchmarkCliRunner().run(args); diff --git a/benchmark_cherrypick/lib/benchmarks/universal_chain_async_benchmark.dart b/benchmark_di/lib/benchmarks/universal_chain_async_benchmark.dart similarity index 77% rename from benchmark_cherrypick/lib/benchmarks/universal_chain_async_benchmark.dart rename to benchmark_di/lib/benchmarks/universal_chain_async_benchmark.dart index a45102d..55b225e 100644 --- a/benchmark_cherrypick/lib/benchmarks/universal_chain_async_benchmark.dart +++ b/benchmark_di/lib/benchmarks/universal_chain_async_benchmark.dart @@ -1,8 +1,8 @@ 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'; +import 'package:benchmark_di/di_adapters/di_adapter.dart'; +import 'package:benchmark_di/scenarios/universal_chain_module.dart'; +import 'package:benchmark_di/scenarios/universal_service.dart'; +import 'package:benchmark_di/scenarios/di_universal_registration.dart'; class UniversalChainAsyncBenchmark extends AsyncBenchmarkBase { final DIAdapter di; diff --git a/benchmark_cherrypick/lib/benchmarks/universal_chain_benchmark.dart b/benchmark_di/lib/benchmarks/universal_chain_benchmark.dart similarity index 89% rename from benchmark_cherrypick/lib/benchmarks/universal_chain_benchmark.dart rename to benchmark_di/lib/benchmarks/universal_chain_benchmark.dart index 1068708..d814709 100644 --- a/benchmark_cherrypick/lib/benchmarks/universal_chain_benchmark.dart +++ b/benchmark_di/lib/benchmarks/universal_chain_benchmark.dart @@ -1,8 +1,8 @@ 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'; +import 'package:benchmark_di/di_adapters/di_adapter.dart'; +import 'package:benchmark_di/scenarios/universal_chain_module.dart'; +import 'package:benchmark_di/scenarios/universal_service.dart'; +import 'package:benchmark_di/scenarios/di_universal_registration.dart'; class UniversalChainBenchmark extends BenchmarkBase { final DIAdapter _di; diff --git a/benchmark_cherrypick/lib/cli/benchmark_cli.dart b/benchmark_di/lib/cli/benchmark_cli.dart similarity index 89% rename from benchmark_cherrypick/lib/cli/benchmark_cli.dart rename to benchmark_di/lib/cli/benchmark_cli.dart index 0db499a..a904a81 100644 --- a/benchmark_cherrypick/lib/cli/benchmark_cli.dart +++ b/benchmark_di/lib/cli/benchmark_cli.dart @@ -1,6 +1,6 @@ import 'dart:math'; -import 'package:benchmark_cherrypick/cli/report/markdown_report.dart'; +import 'package:benchmark_di/cli/report/markdown_report.dart'; import '../scenarios/universal_chain_module.dart'; import 'report/pretty_report.dart'; @@ -8,10 +8,10 @@ import 'report/csv_report.dart'; import 'report/json_report.dart'; import 'parser.dart'; import 'runner.dart'; -import 'package:benchmark_cherrypick/benchmarks/universal_chain_benchmark.dart'; -import 'package:benchmark_cherrypick/benchmarks/universal_chain_async_benchmark.dart'; -import 'package:benchmark_cherrypick/di_adapters/cherrypick_adapter.dart'; -import 'package:benchmark_cherrypick/di_adapters/get_it_adapter.dart'; +import 'package:benchmark_di/benchmarks/universal_chain_benchmark.dart'; +import 'package:benchmark_di/benchmarks/universal_chain_async_benchmark.dart'; +import 'package:benchmark_di/di_adapters/cherrypick_adapter.dart'; +import 'package:benchmark_di/di_adapters/get_it_adapter.dart'; /// Command-line interface (CLI) runner for benchmarks. /// diff --git a/benchmark_cherrypick/lib/cli/parser.dart b/benchmark_di/lib/cli/parser.dart similarity index 98% rename from benchmark_cherrypick/lib/cli/parser.dart rename to benchmark_di/lib/cli/parser.dart index 73ee533..27d0719 100644 --- a/benchmark_cherrypick/lib/cli/parser.dart +++ b/benchmark_di/lib/cli/parser.dart @@ -1,7 +1,7 @@ import 'dart:io'; import 'package:args/args.dart'; -import 'package:benchmark_cherrypick/scenarios/universal_chain_module.dart'; +import 'package:benchmark_di/scenarios/universal_chain_module.dart'; /// Enum describing all supported Universal DI benchmark types. enum UniversalBenchmark { diff --git a/benchmark_cherrypick/lib/cli/report/csv_report.dart b/benchmark_di/lib/cli/report/csv_report.dart similarity index 100% rename from benchmark_cherrypick/lib/cli/report/csv_report.dart rename to benchmark_di/lib/cli/report/csv_report.dart diff --git a/benchmark_cherrypick/lib/cli/report/json_report.dart b/benchmark_di/lib/cli/report/json_report.dart similarity index 100% rename from benchmark_cherrypick/lib/cli/report/json_report.dart rename to benchmark_di/lib/cli/report/json_report.dart diff --git a/benchmark_cherrypick/lib/cli/report/markdown_report.dart b/benchmark_di/lib/cli/report/markdown_report.dart similarity index 100% rename from benchmark_cherrypick/lib/cli/report/markdown_report.dart rename to benchmark_di/lib/cli/report/markdown_report.dart diff --git a/benchmark_cherrypick/lib/cli/report/pretty_report.dart b/benchmark_di/lib/cli/report/pretty_report.dart similarity index 100% rename from benchmark_cherrypick/lib/cli/report/pretty_report.dart rename to benchmark_di/lib/cli/report/pretty_report.dart diff --git a/benchmark_cherrypick/lib/cli/report/report_generator.dart b/benchmark_di/lib/cli/report/report_generator.dart similarity index 100% rename from benchmark_cherrypick/lib/cli/report/report_generator.dart rename to benchmark_di/lib/cli/report/report_generator.dart diff --git a/benchmark_cherrypick/lib/cli/runner.dart b/benchmark_di/lib/cli/runner.dart similarity index 94% rename from benchmark_cherrypick/lib/cli/runner.dart rename to benchmark_di/lib/cli/runner.dart index 5687dba..ae6835d 100644 --- a/benchmark_cherrypick/lib/cli/runner.dart +++ b/benchmark_di/lib/cli/runner.dart @@ -1,7 +1,7 @@ import 'dart:io'; import 'dart:math'; -import 'package:benchmark_cherrypick/benchmarks/universal_chain_benchmark.dart'; -import 'package:benchmark_cherrypick/benchmarks/universal_chain_async_benchmark.dart'; +import 'package:benchmark_di/benchmarks/universal_chain_benchmark.dart'; +import 'package:benchmark_di/benchmarks/universal_chain_async_benchmark.dart'; /// Holds the results for a single benchmark execution. class BenchmarkResult { diff --git a/benchmark_cherrypick/lib/di_adapters/cherrypick_adapter.dart b/benchmark_di/lib/di_adapters/cherrypick_adapter.dart similarity index 100% rename from benchmark_cherrypick/lib/di_adapters/cherrypick_adapter.dart rename to benchmark_di/lib/di_adapters/cherrypick_adapter.dart diff --git a/benchmark_cherrypick/lib/di_adapters/di_adapter.dart b/benchmark_di/lib/di_adapters/di_adapter.dart similarity index 100% rename from benchmark_cherrypick/lib/di_adapters/di_adapter.dart rename to benchmark_di/lib/di_adapters/di_adapter.dart diff --git a/benchmark_cherrypick/lib/di_adapters/get_it_adapter.dart b/benchmark_di/lib/di_adapters/get_it_adapter.dart similarity index 100% rename from benchmark_cherrypick/lib/di_adapters/get_it_adapter.dart rename to benchmark_di/lib/di_adapters/get_it_adapter.dart diff --git a/benchmark_cherrypick/lib/scenarios/di_universal_registration.dart b/benchmark_di/lib/scenarios/di_universal_registration.dart similarity index 98% rename from benchmark_cherrypick/lib/scenarios/di_universal_registration.dart rename to benchmark_di/lib/scenarios/di_universal_registration.dart index d0351af..a32d54a 100644 --- a/benchmark_cherrypick/lib/scenarios/di_universal_registration.dart +++ b/benchmark_di/lib/scenarios/di_universal_registration.dart @@ -1,4 +1,4 @@ -import 'package:benchmark_cherrypick/scenarios/universal_service.dart'; +import 'package:benchmark_di/scenarios/universal_service.dart'; import '../di_adapters/di_adapter.dart'; import '../di_adapters/cherrypick_adapter.dart'; diff --git a/benchmark_cherrypick/lib/scenarios/universal_chain_module.dart b/benchmark_di/lib/scenarios/universal_chain_module.dart similarity index 100% rename from benchmark_cherrypick/lib/scenarios/universal_chain_module.dart rename to benchmark_di/lib/scenarios/universal_chain_module.dart diff --git a/benchmark_cherrypick/lib/scenarios/universal_service.dart b/benchmark_di/lib/scenarios/universal_service.dart similarity index 100% rename from benchmark_cherrypick/lib/scenarios/universal_service.dart rename to benchmark_di/lib/scenarios/universal_service.dart diff --git a/benchmark_cherrypick/melos_benchmark_cherrypick.iml b/benchmark_di/melos_benchmark_cherrypick.iml similarity index 100% rename from benchmark_cherrypick/melos_benchmark_cherrypick.iml rename to benchmark_di/melos_benchmark_cherrypick.iml diff --git a/benchmark_cherrypick/pubspec.lock b/benchmark_di/pubspec.lock similarity index 100% rename from benchmark_cherrypick/pubspec.lock rename to benchmark_di/pubspec.lock diff --git a/benchmark_cherrypick/pubspec.yaml b/benchmark_di/pubspec.yaml similarity index 70% rename from benchmark_cherrypick/pubspec.yaml rename to benchmark_di/pubspec.yaml index 4dc437d..525f529 100644 --- a/benchmark_cherrypick/pubspec.yaml +++ b/benchmark_di/pubspec.yaml @@ -1,7 +1,7 @@ -name: benchmark_cherrypick +name: benchmark_di version: 0.1.0 publish_to: none -description: Benchmark for cherrypick core DI library +description: Universal benchmark for any DI library (cherrypick, get_it, and others) environment: sdk: '>=3.0.0 <4.0.0' diff --git a/melos.yaml b/melos.yaml index 49f9048..2dc15b2 100644 --- a/melos.yaml +++ b/melos.yaml @@ -3,7 +3,7 @@ name: cherrypick_workspace sdkPath: .fvm/flutter_sdk packages: - - benchmark_cherrypick + - benchmark_di - cherrypick - cherrypick_flutter - cherrypick_annotations