Skip to content

armgit / ruflo

Public Imported from GitHub
0

🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated

🔖 Checkpoint: Edit /workspaces/claude-code-flow/benchmark/src/swarm_benchmark/core/benchmark_engine.py

rUv1f9aacc9fd2a
diff --git a/benchmark/.claude/checkpoints/1754446825.json b/benchmark/.claude/checkpoints/1754446825.json
new file mode 100644
index 0000000000..2645dad445
--- /dev/null
+++ b/benchmark/.claude/checkpoints/1754446825.json
@@ -0,0 +1 @@
+{"branch": "checkpoint/pre-edit-20250806-022025", "file": "/workspaces/claude-code-flow/benchmark/src/swarm_benchmark/core/benchmark_engine.py", "timestamp": "2025-08-06T02:20:25Z", "type": "pre-edit", "original_branch": "alpha-88"}
diff --git a/benchmark/.claude/checkpoints/1754446827.json b/benchmark/.claude/checkpoints/1754446827.json
new file mode 100644
index 0000000000..26636a3842
--- /dev/null
+++ b/benchmark/.claude/checkpoints/1754446827.json
@@ -0,0 +1 @@
+{"tag": "checkpoint-20250806-022027", "file": "/workspaces/claude-code-flow/benchmark/src/swarm_benchmark/core/benchmark_engine.py", "timestamp": "2025-08-06T02:20:27Z", "type": "post-edit", "branch": "alpha-88", "diff_summary": " .claude-flow/metrics/system-metrics.json | 132 +++ benchmark/.claude-flow/metrics/performance.json | 2 +- benchmark/.claude-flow/metrics/task-metrics.json | 6 +- benchmark/.claude/checkpoints/1754446804.json | 1 + benchmark/.claude/checkpoints/1754446806.json | 1 + 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 ------ benchmark/hello_world.py | 21 - 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 - benchmark/run-load-tests.py | 479 ----------- benchmark/run_performance_tests.py | 550 ------------ benchmark/simple-load-test.py | 322 ------- .../src/swarm_benchmark/core/benchmark_engine.py | 10 + benchmark/swarm_performance_suite.py | 840 ------------------ benchmark/test_claude_optimizer.py | 235 ------ benchmark/test_hello_world.py | 33 - benchmark/test_integration.py | 274 ------ benchmark/test_mle_star_integration.py | 225 ----- benchmark/test_real_benchmark_engine.py | 317 ------- benchmark/test_real_claude_flow.py | 218 ----- benchmark/test_real_metrics.py | 128 --- benchmark/test_real_simple.py | 104 --- benchmark/test_simple_run.py | 35 - .../tests/integration/quick_test_integration.py | 2 +- .../tests/integration/test_claude_optimizer.py | 2 +- benchmark/tests/integration/test_integration.py | 2 +- .../tests/integration/test_mle_star_integration.py | 4 +- .../integration/test_real_benchmark_engine.py | 4 +- .../tests/integration/test_real_claude_flow.py | 2 +- benchmark/tests/integration/test_real_metrics.py | 2 +- benchmark/tests/integration/test_simple_run.py | 2 +- claude-flow-wiki | 0 41 files changed, 158 insertions(+), 9126 deletions(-) "}
diff --git a/benchmark/src/swarm_benchmark/core/benchmark_engine.py b/benchmark/src/swarm_benchmark/core/benchmark_engine.py
index 58bd09de36..c1b8ce9229 100644
--- a/benchmark/src/swarm_benchmark/core/benchmark_engine.py
+++ b/benchmark/src/swarm_benchmark/core/benchmark_engine.py
@@ -24,12 +24,25 @@ logger = logging.getLogger(__name__)
class BenchmarkEngine:
"""Main engine for running swarm benchmarks."""
- def __init__(self, config: Optional[BenchmarkConfig] = None):
+ def __init__(self, config: Optional[BenchmarkConfig] = None, use_real_executor: bool = False):
"""Initialize the benchmark engine."""
self.config = config or BenchmarkConfig()
self.status = "READY"
self.task_queue = []
self.current_benchmark: Optional[Benchmark] = None
+ self.use_real_executor = use_real_executor
+
+ # Initialize real executor if requested
+ if self.use_real_executor:
+ try:
+ self.real_executor = RealClaudeFlowExecutor()
+ logger.info("Real Claude Flow executor initialized")
+ except Exception as e:
+ logger.error(f"Failed to initialize real executor: {e}")
+ self.real_executor = None
+ self.use_real_executor = False
+ else:
+ self.real_executor = None
def submit_task(self, task: Task) -> None:
"""Submit a task to the benchmark queue."""