mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-11-23 21:59:14 +09:00
- Reorganize v3/ into implementation/ subfolders: - planning/, architecture/, migration/, integration/ - security/, adrs/, research/, swarm-plans/ - Add 15-agent concurrent swarm implementation plans: - SWARM-OVERVIEW.md: Hierarchical mesh topology, 4 phases - AGENT-SPECIFICATIONS.md: 15 agent configs with capabilities - TDD-LONDON-SCHOOL-PLAN.md: Mock-first TDD methodology - BENCHMARK-OPTIMIZATION.md: Performance targets (2.49x-7.47x) - DEPLOYMENT-PLAN.md: Release strategy, CI/CD, rollback - GITHUB-ISSUE-TRACKING.md: Issue workflow with agent replies - Update .claude/settings.json with proper hooks format - Add bash aliases for claude --dangerously-skip-permissions 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Claude Flow Benchmark System v2.0
A production-ready benchmarking system for Claude Flow that executes real commands and measures actual performance metrics.
🚀 Quick Start
# Install dependencies
cd benchmark
pip install -e .
# Run real benchmark
python examples/real_swarm_benchmark.py "Build REST API"
# Run comprehensive suite
python run_real_benchmarks.py --mode comprehensive
✨ Key Features
- Real Command Execution: Executes actual
./claude-flowcommands via subprocess - Stream JSON Parsing: Real-time parsing of
--non-interactive --output-format stream-json - Authentic Metrics: Token usage, execution time, and resource consumption from real runs
- No Simulations: 100% real execution, no mocks or placeholders
- MLE-STAR Integration: Ensemble learning benchmarks
- CLAUDE.md Optimizer: Generate optimized configurations for specific use cases
📊 Supported Commands
Swarm Benchmarking
./claude-flow swarm "objective" --non-interactive --output-format stream-json
Hive-Mind Benchmarking
./claude-flow hive-mind spawn "task" --non-interactive
SPARC Mode Benchmarking
./claude-flow sparc run code "task" --non-interactive
🏗️ Architecture
benchmark/
├── src/swarm_benchmark/
│ ├── core/
│ │ ├── claude_flow_real_executor.py # Real command executor
│ │ ├── real_benchmark_engine_v2.py # Production benchmark engine
│ │ └── benchmark_engine.py # Core engine with real support
│ ├── scenarios/
│ │ └── real_benchmarks.py # Real benchmark scenarios
│ ├── mle_star/ # MLE-STAR ensemble integration
│ ├── claude_optimizer/ # CLAUDE.md optimization
│ ├── automation/ # Batch processing & pipelines
│ └── advanced_metrics/ # Token & performance metrics
├── examples/ # Working examples
├── tests/ # Comprehensive test suite
└── tools/ # Utility scripts
📈 Real Metrics Captured
- Token Usage: Input/output tokens from Claude API
- Execution Time: Real command runtime
- Agent Activity: Spawned agents, completed tasks
- Resource Usage: CPU, memory, disk I/O
- Error Rates: Command failures and recovery
- Consensus Metrics: Hive-mind decision quality
🧪 Testing
# Quick validation
python test_real_benchmarks.py --quick
# Integration tests
pytest tests/integration/test_real_claude_flow_integration.py
# Verify real integration
python examples/verify_real_integration.py
📚 Documentation
🎯 Example Usage
from swarm_benchmark import BenchmarkEngine
# Create engine with real executor
engine = BenchmarkEngine(use_real_executor=True)
# Run real benchmark
result = await engine.run_real_benchmark(
objective="Build microservices architecture",
strategy="development",
mode="distributed",
max_agents=5
)
# Access real metrics
print(f"Tokens used: {result.metrics['total_tokens']}")
print(f"Execution time: {result.metrics['duration_seconds']}s")
print(f"Agents spawned: {result.metrics['agents_spawned']}")
🔧 Configuration
The system uses real Claude Flow commands with these flags:
--non-interactive: Automation mode--output-format stream-json: Structured output--dangerously-skip-permissions: Skip prompts--verbose: Detailed logging
📊 Performance
Validated with Claude Flow v2.0.0-alpha.87:
- Real token usage tracking
- Actual execution timing
- Live resource monitoring
- Genuine error rates
🤝 Contributing
This is a production system designed for real benchmarking. All contributions must:
- Use real Claude Flow commands
- Parse actual responses
- Measure genuine metrics
- Include comprehensive tests
📄 License
MIT License - See LICENSE file for details
Version: 2.0.0
Status: Production Ready
Real Execution: Yes
Simulations: None