From 81fe2d30f6294ddf79fa7505cd02ffaad930332d Mon Sep 17 00:00:00 2001 From: rUv Date: Wed, 6 Aug 2025 01:50:19 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=96=20Checkpoint:=20Edit=20/workspaces?= =?UTF-8?q?/claude-code-flow/benchmark/scripts/=5F=5Finit=5F=5F.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- benchmark/.claude/checkpoints/1754445006.json | 1 + benchmark/.claude/checkpoints/1754445008.json | 1 + benchmark/scripts/__init__.py | 6 ++++++ .../tests/.claude-flow/metrics/agent-metrics.json | 1 + benchmark/tests/.claude-flow/metrics/performance.json | 9 +++++++++ benchmark/tests/.claude-flow/metrics/task-metrics.json | 10 ++++++++++ 6 files changed, 28 insertions(+) create mode 100644 benchmark/.claude/checkpoints/1754445006.json create mode 100644 benchmark/.claude/checkpoints/1754445008.json create mode 100644 benchmark/scripts/__init__.py create mode 100644 benchmark/tests/.claude-flow/metrics/agent-metrics.json create mode 100644 benchmark/tests/.claude-flow/metrics/performance.json create mode 100644 benchmark/tests/.claude-flow/metrics/task-metrics.json diff --git a/benchmark/.claude/checkpoints/1754445006.json b/benchmark/.claude/checkpoints/1754445006.json new file mode 100644 index 0000000000..9e4264ed25 --- /dev/null +++ b/benchmark/.claude/checkpoints/1754445006.json @@ -0,0 +1 @@ +{"branch": "checkpoint/pre-edit-20250806-015006", "file": "/workspaces/claude-code-flow/benchmark/examples/real_benchmark_examples.py", "timestamp": "2025-08-06T01:50:06Z", "type": "pre-edit", "original_branch": "alpha-88"} diff --git a/benchmark/.claude/checkpoints/1754445008.json b/benchmark/.claude/checkpoints/1754445008.json new file mode 100644 index 0000000000..d6dad8d344 --- /dev/null +++ b/benchmark/.claude/checkpoints/1754445008.json @@ -0,0 +1 @@ +{"tag": "checkpoint-20250806-015008", "file": "/workspaces/claude-code-flow/benchmark/examples/real_benchmark_examples.py", "timestamp": "2025-08-06T01:50:08Z", "type": "post-edit", "branch": "alpha-88", "diff_summary": " .claude-flow/metrics/system-metrics.json | 108 +++ benchmark/.claude-flow/metrics/performance.json | 2 +- benchmark/.claude-flow/metrics/task-metrics.json | 6 +- benchmark/.claude/checkpoints/1754444998.json | 1 + benchmark/.claude/checkpoints/1754445000.json | 1 + benchmark/ci_performance_integration.py | 754 -------------------- benchmark/compare_optimizations.py | 172 ----- benchmark/demo_comprehensive.py | 233 ------- benchmark/demo_mle_star.py | 152 ---- benchmark/demo_real_benchmark.py | 219 ------ benchmark/example_usage.py | 249 ------- benchmark/examples/real_benchmark_examples.py | 2 +- .../__pycache__/benchmark_runner.cpython-312.pyc | Bin 24173 -> 0 bytes .../automated_test_runner.cpython-312.pyc | Bin 32696 -> 0 bytes .../__pycache__/parallel_executor.cpython-312.pyc | Bin 23676 -> 0 bytes .../__pycache__/result_collector.cpython-312.pyc | Bin 39201 -> 0 bytes benchmark/mle_star_benchmark_example.py | 229 ------ benchmark/performance_dashboard.py | 769 --------------------- .../__pycache__/__init__.cpython-312.pyc | Bin 2870 -> 0 bytes .../__pycache__/__init__.cpython-312.pyc | Bin 1345 -> 0 bytes .../__pycache__/memory_profiler.cpython-312.pyc | Bin 43459 -> 0 bytes .../__pycache__/metric_aggregator.cpython-312.pyc | Bin 42675 -> 0 bytes .../__pycache__/neural_benchmarks.cpython-312.pyc | Bin 44186 -> 0 bytes .../performance_analyzer.cpython-312.pyc | Bin 57821 -> 0 bytes .../__pycache__/token_optimizer.cpython-312.pyc | Bin 40053 -> 0 bytes .../__pycache__/__init__.cpython-312.pyc | Bin 1652 -> 0 bytes .../__pycache__/batch_processor.cpython-312.pyc | Bin 40756 -> 0 bytes .../__pycache__/decision_engine.cpython-312.pyc | Bin 44984 -> 0 bytes .../automation/__pycache__/models.cpython-312.pyc | Bin 2252 -> 0 bytes .../__pycache__/pipeline_manager.cpython-312.pyc | Bin 32505 -> 0 bytes .../__pycache__/resource_pool.cpython-312.pyc | Bin 38372 -> 0 bytes .../__pycache__/workflow_executor.cpython-312.pyc | Bin 43709 -> 0 bytes .../__pycache__/__init__.cpython-312.pyc | Bin 738 -> 0 bytes .../__pycache__/optimizer.cpython-312.pyc | Bin 27444 -> 0 bytes .../__pycache__/rules_engine.cpython-312.pyc | Bin 20977 -> 0 bytes .../__pycache__/templates.cpython-312.pyc | Bin 21167 -> 0 bytes .../__pycache__/__init__.cpython-312.pyc | Bin 2698 -> 0 bytes .../config/__pycache__/__init__.cpython-312.pyc | Bin 524 -> 0 bytes .../__pycache__/unified_config.cpython-312.pyc | Bin 27458 -> 0 bytes .../core/__pycache__/__init__.cpython-312.pyc | Bin 1415 -> 0 bytes .../__pycache__/base_interfaces.cpython-312.pyc | Bin 20843 -> 0 bytes .../__pycache__/benchmark_engine.cpython-312.pyc | Bin 7620 -> 0 bytes .../core/__pycache__/models.cpython-312.pyc | Bin 18629 -> 0 bytes .../optimized_benchmark_engine.cpython-312.pyc | Bin 15770 -> 0 bytes .../orchestration_manager.cpython-312.pyc | Bin 25940 -> 0 bytes .../__pycache__/parallel_executor.cpython-312.pyc | Bin 35716 -> 0 bytes .../__pycache__/result_aggregator.cpython-312.pyc | Bin 1029 -> 0 bytes .../__pycache__/task_scheduler.cpython-312.pyc | Bin 22516 -> 0 bytes .../mle_star/__pycache__/__init__.cpython-312.pyc | Bin 1091 -> 0 bytes .../__pycache__/ensemble_executor.cpython-312.pyc | Bin 24374 -> 0 bytes .../__pycache__/ml_scenarios.cpython-312.pyc | Bin 28015 -> 0 bytes .../__pycache__/model_coordinator.cpython-312.pyc | Bin 38329 -> 0 bytes .../performance_tracker.cpython-312.pyc | Bin 31006 -> 0 bytes .../__pycache__/voting_strategies.cpython-312.pyc | Bin 31206 -> 0 bytes .../__pycache__/__init__.cpython-312.pyc | Bin 2003 -> 0 bytes .../__pycache__/analysis_strategy.cpython-312.pyc | Bin 3220 -> 0 bytes .../__pycache__/auto_strategy.cpython-312.pyc | Bin 5525 -> 0 bytes .../__pycache__/base_strategy.cpython-312.pyc | Bin 2972 -> 0 bytes .../development_strategy.cpython-312.pyc | Bin 6692 -> 0 bytes .../maintenance_strategy.cpython-312.pyc | Bin 3239 -> 0 bytes .../optimization_strategy.cpython-312.pyc | Bin 3290 -> 0 bytes .../__pycache__/research_strategy.cpython-312.pyc | Bin 6215 -> 0 bytes .../__pycache__/testing_strategy.cpython-312.pyc | Bin 3181 -> 0 bytes .../integration}/quick_test_integration.py | 0 .../integration}/test_claude_optimizer.py | 0 .../{ => tests/integration}/test_integration.py | 0 .../integration}/test_mle_star_integration.py | 0 .../integration}/test_real_benchmark_engine.py | 0 .../integration}/test_real_claude_flow.py | 0 .../{ => tests/integration}/test_real_metrics.py | 0 .../{ => tests/integration}/test_real_simple.py | 0 .../{ => tests/integration}/test_simple_run.py | 0 claude-flow-wiki | 0 73 files changed, 115 insertions(+), 2782 deletions(-) "} diff --git a/benchmark/scripts/__init__.py b/benchmark/scripts/__init__.py new file mode 100644 index 0000000000..8ffb1a97bc --- /dev/null +++ b/benchmark/scripts/__init__.py @@ -0,0 +1,6 @@ +""" +Executable scripts for swarm benchmarking. + +This module contains standalone scripts for running performance tests, +load tests, and monitoring tools. +""" \ No newline at end of file diff --git a/benchmark/tests/.claude-flow/metrics/agent-metrics.json b/benchmark/tests/.claude-flow/metrics/agent-metrics.json new file mode 100644 index 0000000000..9e26dfeeb6 --- /dev/null +++ b/benchmark/tests/.claude-flow/metrics/agent-metrics.json @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/benchmark/tests/.claude-flow/metrics/performance.json b/benchmark/tests/.claude-flow/metrics/performance.json new file mode 100644 index 0000000000..92ff7f9a1d --- /dev/null +++ b/benchmark/tests/.claude-flow/metrics/performance.json @@ -0,0 +1,9 @@ +{ + "startTime": 1754445015436, + "totalTasks": 1, + "successfulTasks": 1, + "failedTasks": 0, + "totalAgents": 0, + "activeAgents": 0, + "neuralEvents": 0 +} \ No newline at end of file diff --git a/benchmark/tests/.claude-flow/metrics/task-metrics.json b/benchmark/tests/.claude-flow/metrics/task-metrics.json new file mode 100644 index 0000000000..ab561e7937 --- /dev/null +++ b/benchmark/tests/.claude-flow/metrics/task-metrics.json @@ -0,0 +1,10 @@ +[ + { + "id": "cmd-hooks-1754445015540", + "type": "hooks", + "success": true, + "duration": 9.455416000000014, + "timestamp": 1754445015550, + "metadata": {} + } +] \ No newline at end of file