🔖 Checkpoint: Edit /workspaces/claude-code-flow/benchmark/tests/integration/quick_test_integration.py

This commit is contained in:
rUv committed 2025-08-06 01:51:46 +00:00
1 parent 0d346102e1
commit 092d852ff2
7 files changed
+388 -1

No files matched your search

@@ -0,0 +1 @@
{"branch": "checkpoint/pre-edit-20250806-015120", "file": "/workspaces/claude-code-flow/benchmark/tests/integration/test_real_benchmark_engine.py", "timestamp": "2025-08-06T01:51:20Z", "type": "pre-edit", "original_branch": "alpha-88"}
@@ -0,0 +1 @@
{"tag": "checkpoint-20250806-015122", "file": "/workspaces/claude-code-flow/benchmark/tests/integration/test_real_benchmark_engine.py", "timestamp": "2025-08-06T01:51:22Z", "type": "post-edit", "branch": "alpha-88", "diff_summary": " .claude-flow/metrics/system-metrics.json | 5632 ++++++++++---------- benchmark/.claude-flow/metrics/performance.json | 2 +- benchmark/.claude-flow/metrics/task-metrics.json | 6 +- benchmark/ci_performance_integration.py | 754 --- benchmark/compare_optimizations.py | 172 - benchmark/continuous_performance_monitor.py | 673 --- benchmark/demo_comprehensive.py | 233 - benchmark/demo_mle_star.py | 152 - benchmark/demo_real_benchmark.py | 219 - benchmark/example_usage.py | 249 - .../__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/hive-mind-load-test.py | 902 ---- benchmark/hive-mind-stress-test.py | 935 ---- benchmark/mle_star_benchmark_example.py | 229 - benchmark/performance_dashboard.py | 769 --- benchmark/quick_test_integration.py | 44 - .../reports/examples/all_examples_results.json | 208 + ...trics_7bb95bb1-0abb-4458-9858-5ac27add2f17.json | 66 + ...eport_7bb95bb1-0abb-4458-9858-5ac27add2f17.json | 47 + ...hmark_7bb95bb1-0abb-4458-9858-5ac27add2f17.json | 136 + ...trics_03f056f8-c7df-4feb-816f-46ae8415cffb.json | 66 + ...trics_b0784f86-a849-4720-a729-8d26d1da60d9.json | 66 + ...trics_ea2cf6b0-9a37-4ff2-9adf-5cce559c844c.json | 66 + ...eport_03f056f8-c7df-4feb-816f-46ae8415cffb.json | 47 + ...eport_b0784f86-a849-4720-a729-8d26d1da60d9.json | 47 + ...eport_ea2cf6b0-9a37-4ff2-9adf-5cce559c844c.json | 47 + ...pment_03f056f8-c7df-4feb-816f-46ae8415cffb.json | 136 + ...ation_ea2cf6b0-9a37-4ff2-9adf-5cce559c844c.json | 136 + ...earch_b0784f86-a849-4720-a729-8d26d1da60d9.json | 136 + benchmark/run-load-tests.py | 479 -- benchmark/run_performance_tests.py | 550 -- .../scripts/__pycache__/__init__.cpython-312.pyc | Bin 0 -> 322 bytes benchmark/simple-load-test.py | 322 -- .../__pycache__/__init__.cpython-312.pyc | Bin 2870 -> 2879 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 -> 533 bytes .../__pycache__/unified_config.cpython-312.pyc | Bin 27458 -> 27467 bytes .../core/__pycache__/__init__.cpython-312.pyc | Bin 1415 -> 1424 bytes .../__pycache__/base_interfaces.cpython-312.pyc | Bin 20843 -> 20852 bytes .../__pycache__/benchmark_engine.cpython-312.pyc | Bin 7620 -> 7629 bytes .../core/__pycache__/models.cpython-312.pyc | Bin 18629 -> 18638 bytes .../optimized_benchmark_engine.cpython-312.pyc | Bin 15770 -> 15779 bytes .../orchestration_manager.cpython-312.pyc | Bin 25940 -> 25949 bytes .../__pycache__/parallel_executor.cpython-312.pyc | Bin 35716 -> 35725 bytes .../real_benchmark_engine.cpython-312.pyc | Bin 0 -> 14056 bytes .../__pycache__/result_aggregator.cpython-312.pyc | Bin 1029 -> 1038 bytes .../__pycache__/task_scheduler.cpython-312.pyc | Bin 22516 -> 22525 bytes .../metrics/__pycache__/__init__.cpython-312.pyc | Bin 0 -> 531 bytes Line truncated
@@ -0,0 +1,66 @@
{
"summary": {
"wall_clock_time": 1.4063353538513184,
"tasks_per_second": 0.7110679520794603,
"success_rate": 1.0,
"peak_memory_mb": 0.0,
"average_cpu_percent": 0.0
},
"performance": {
"average_duration": 0.0,
"median_duration": 0.0,
"p95_duration": 0.0,
"p99_duration": 0.0,
"total_cpu_seconds": 0.0
},
"resources": {
"memory": {
"peak_mb": 0.0,
"average_mb": 0.0
},
"cpu": {
"average_percent": 0.0,
"total_seconds": 0.0
},
"io": {
"disk_read_mb": 0.0,
"disk_write_mb": 0.0,
"network_sent_mb": 0.0,
"network_recv_mb": 0.0
}
},
"processes": {
"total": 1,
"peak_threads": 0,
"peak_fds": 0
},
"output": {
"total_size": 5,
"average_size": 5,
"complexity_score": 3.555339760397301
},
"collectors": {
"performance": 1,
"resource": 1
},
"timestamp": "2025-08-06T01:51:40.409663",
"process_executions": {
"sparc:{\"positional\": [\"orchestrator\", \"Create a function to calculate fibonacci numbers\"]}": {
"command_type": "sparc",
"args": {
"positional": [
"orchestrator",
"Create a function to calculate fibonacci numbers"
]
},
"execution_count": 1,
"success_count": 1,
"failure_count": 0,
"success_rate": 1.0,
"average_duration": 0.4041142463684082,
"total_duration": 0.4041142463684082,
"average_memory_mb": 49.2099609375,
"peak_memory_mb": 72.76171875
}
}
}
@@ -0,0 +1,47 @@
{
"summary": {
"total_executions": 1,
"successful_executions": 1,
"failed_executions": 0,
"overall_success_rate": 1.0,
"total_duration": 0.4041142463684082,
"average_duration": 0.4041142463684082,
"peak_memory_mb": 72.76171875,
"average_memory_mb": 49.2099609375,
"total_output_lines": 5,
"total_errors": 0
},
"command_statistics": {
"sparc:{\"positional\": [\"orchestrator\", \"Create a function to calculate fibonacci numbers\"]}": {
"command_type": "sparc",
"args": {
"positional": [
"orchestrator",
"Create a function to calculate fibonacci numbers"
]
},
"execution_count": 1,
"success_count": 1,
"failure_count": 0,
"success_rate": 1.0,
"average_duration": 0.4041142463684082,
"total_duration": 0.4041142463684082,
"average_memory_mb": 49.2099609375,
"peak_memory_mb": 72.76171875
}
},
"executions": [
{
"command": "claude-flow sparc orchestrator Create a function to calculate fibonacci numbers",
"exit_code": 0,
"success": true,
"duration": 0.4041142463684082,
"start_time": 1754445096.9997785,
"output_size": 5,
"error_count": 0,
"cpu_percent": 99.4,
"memory_mb": 49.2099609375,
"peak_memory_mb": 72.76171875
}
]
}
@@ -0,0 +1,136 @@
{
"id": "9b86f959-4a6f-4e17-abef-3c26b86df4f0",
"name": "simple-benchmark",
"description": "A simple benchmark example",
"status": "completed",
"config": {
"name": "simple-benchmark",
"description": "A simple benchmark example",
"strategy": "auto",
"mode": "centralized",
"max_agents": 5,
"max_tasks": 100,
"timeout": 3600,
"task_timeout": 60,
"max_retries": 3,
"parallel": false,
"background": false,
"monitoring": true,
"quality_threshold": 0.8,
"resource_limits": {
"max_memory_mb": 1024,
"max_cpu_percent": 80,
"max_network_mbps": 100
},
"output_formats": [
"json"
],
"output_directory": "./reports/examples",
"verbose": false
},
"tasks": [
{
"id": "7f9f6d98-8cc3-48d1-8f96-2f3a73e0f0f2",
"objective": "Create a function to calculate fibonacci numbers",
"description": "Benchmark task: Create a function to calculate fibonacci numbers",
"strategy": "auto",
"mode": "centralized",
"parameters": {},
"timeout": 60,
"max_retries": 3,
"priority": 1,
"status": "pending",
"created_at": "2025-08-06T01:51:36.999262",
"started_at": null,
"completed_at": null,
"duration": null,
"assigned_agents": [],
"parent_task_id": null,
"subtasks": [],
"dependencies": []
}
],
"results": [
{
"id": "c291e39b-c758-4bb5-8950-34b410c4eaa6",
"task_id": "7f9f6d98-8cc3-48d1-8f96-2f3a73e0f0f2",
"agent_id": "claude-flow",
"status": "success",
"output": {
"raw_output": "\u274c SPARC configuration file (.roomodes) not found\nPlease ensure .roomodes file exists in: /workspaces/claude-code-flow/benchmark\n\nTo enable SPARC development modes, run:\n npx claude-flow@latest init --sparc",
"lines": [
"\u274c SPARC configuration file (.roomodes) not found",
"Please ensure .roomodes file exists in: /workspaces/claude-code-flow/benchmark",
"",
"To enable SPARC development modes, run:",
" npx claude-flow@latest init --sparc"
],
"sections": {}
},
"errors": [],
"warnings": [],
"performance_metrics": {
"execution_time": 0.31996750831604004,
"queue_time": 0.0,
"throughput": 3.125317333822141,
"success_rate": 1.0,
"error_rate": 0.0,
"retry_count": 0,
"coordination_overhead": 0.0,
"communication_latency": 0.0
},
"quality_metrics": {
"accuracy_score": 1.0,
"completeness_score": 1.0,
"consistency_score": 0.0,
"relevance_score": 0.0,
"overall_quality": 1.0,
"review_score": null,
"automated_score": null
},
"resource_usage": {
"cpu_percent": 99.4,
"memory_mb": 49.2099609375,
"network_bytes_sent": 0,
"network_bytes_recv": 0,
"disk_bytes_read": 0,
"disk_bytes_write": 0,
"peak_memory_mb": 72.76171875,
"average_cpu_percent": 99.4
},
"execution_details": {
"command": "claude-flow sparc orchestrator Create a function to calculate fibonacci numbers",
"exit_code": 0,
"output_lines": 5,
"error_count": 0
},
"created_at": "2025-08-06T01:51:37.404375",
"started_at": "2025-08-06T01:51:36.999779",
"completed_at": "2025-08-06T01:51:37.403893",
"duration": 0.404114
}
],
"metrics": {
"total_tasks": 1,
"completed_tasks": 1,
"failed_tasks": 0,
"total_agents": 0,
"active_agents": 0,
"average_execution_time": 0.0,
"total_execution_time": 1.4063353538513184,
"success_rate": 1.0,
"throughput": 0.7110679520794603,
"resource_efficiency": 0.0,
"coordination_efficiency": 1.0,
"quality_score": 0.0,
"peak_memory_usage": 0.0,
"total_cpu_time": 0.0,
"network_overhead": 0.0
},
"created_at": "2025-08-06T01:51:36.999289",
"started_at": "2025-08-06T01:51:36.999293",
"completed_at": "2025-08-06T01:51:37.404393",
"duration": 0.4051,
"error_log": [],
"metadata": {}
}
@@ -0,0 +1,136 @@
{
"id": "1cd14167-2141-4899-98d5-b5ee82fd8d2a",
"name": "swarm-development",
"description": "",
"status": "completed",
"config": {
"name": "swarm-development",
"description": "",
"strategy": "development",
"mode": "hierarchical",
"max_agents": 5,
"max_tasks": 100,
"timeout": 3600,
"task_timeout": 90,
"max_retries": 3,
"parallel": true,
"background": false,
"monitoring": true,
"quality_threshold": 0.8,
"resource_limits": {
"max_memory_mb": 1024,
"max_cpu_percent": 80,
"max_network_mbps": 100
},
"output_formats": [
"json"
],
"output_directory": "./reports",
"verbose": false
},
"tasks": [
{
"id": "8a677675-83d8-4d35-ba54-ef2ed75c0394",
"objective": "Build a data processing pipeline",
"description": "Benchmark task: Build a data processing pipeline",
"strategy": "development",
"mode": "hierarchical",
"parameters": {},
"timeout": 90,
"max_retries": 3,
"priority": 1,
"status": "pending",
"created_at": "2025-08-06T01:51:41.411677",
"started_at": null,
"completed_at": null,
"duration": null,
"assigned_agents": [],
"parent_task_id": null,
"subtasks": [],
"dependencies": []
}
],
"results": [
{
"id": "336768f3-22e3-42a7-bcb9-a648c705f920",
"task_id": "8a677675-83d8-4d35-ba54-ef2ed75c0394",
"agent_id": "claude-flow",
"status": "success",
"output": {
"raw_output": "\u274c SPARC configuration file (.roomodes) not found\nPlease ensure .roomodes file exists in: /workspaces/claude-code-flow/benchmark\n\nTo enable SPARC development modes, run:\n npx claude-flow@latest init --sparc",
"lines": [
"\u274c SPARC configuration file (.roomodes) not found",
"Please ensure .roomodes file exists in: /workspaces/claude-code-flow/benchmark",
"",
"To enable SPARC development modes, run:",
" npx claude-flow@latest init --sparc"
],
"sections": {}
},
"errors": [],
"warnings": [],
"performance_metrics": {
"execution_time": 0.27393198013305664,
"queue_time": 0.0,
"throughput": 3.6505412749335484,
"success_rate": 1.0,
"error_rate": 0.0,
"retry_count": 0,
"coordination_overhead": 0.0,
"communication_latency": 0.0
},
"quality_metrics": {
"accuracy_score": 1.0,
"completeness_score": 1.0,
"consistency_score": 0.0,
"relevance_score": 0.0,
"overall_quality": 1.0,
"review_score": null,
"automated_score": null
},
"resource_usage": {
"cpu_percent": 96.03333333333333,
"memory_mb": 42.071614583333336,
"network_bytes_sent": 0,
"network_bytes_recv": 0,
"disk_bytes_read": 0,
"disk_bytes_write": 0,
"peak_memory_mb": 70.10546875,
"average_cpu_percent": 96.03333333333333
},
"execution_details": {
"command": "claude-flow sparc coder Build a data processing pipeline",
"exit_code": 0,
"output_lines": 5,
"error_count": 0
},
"created_at": "2025-08-06T01:51:41.715584",
"started_at": "2025-08-06T01:51:41.411999",
"completed_at": "2025-08-06T01:51:41.715243",
"duration": 0.303244
}
],
"metrics": {
"total_tasks": 1,
"completed_tasks": 1,
"failed_tasks": 0,
"total_agents": 0,
"active_agents": 0,
"average_execution_time": 0.0,
"total_execution_time": 1.30511474609375,
"success_rate": 1.0,
"throughput": 0.7662161530187532,
"resource_efficiency": 0.0,
"coordination_efficiency": 1.0,
"quality_score": 0.0,
"peak_memory_usage": 0.0,
"total_cpu_time": 0.0,
"network_overhead": 0.0
},
"created_at": "2025-08-06T01:51:41.411701",
"started_at": "2025-08-06T01:51:41.411705",
"completed_at": "2025-08-06T01:51:41.715605",
"duration": 0.3039,
"error_log": [],
"metadata": {}
}
@@ -5,7 +5,7 @@ import sys
from pathlib import Path
# Add benchmark src to path
sys.path.insert(0, str(Path(__file__).parent / "src"))
sys.path.insert(0, str(Path(__file__).parent.parent.parent / "src"))
from swarm_benchmark.core.claude_flow_executor import ClaudeFlowExecutor