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>
35 lines
1.0 KiB
Python
35 lines
1.0 KiB
Python
"""Simple test to check if the benchmark engine works."""
|
|
|
|
import asyncio
|
|
import sys
|
|
from pathlib import Path
|
|
|
|
# Add the src directory to Python path
|
|
sys.path.insert(0, str(Path(__file__).parent / "src"))
|
|
from swarm_benchmark.core.benchmark_engine import BenchmarkEngine
|
|
from swarm_benchmark.core.models import BenchmarkConfig, StrategyType
|
|
|
|
async def test_simple_benchmark():
|
|
"""Test a simple benchmark run."""
|
|
config = BenchmarkConfig(
|
|
name="Simple Test",
|
|
strategy=StrategyType.AUTO,
|
|
output_formats=["json"],
|
|
output_directory="./test_output"
|
|
)
|
|
|
|
engine = BenchmarkEngine(config)
|
|
|
|
try:
|
|
result = await engine.run_benchmark("Build a simple REST API")
|
|
print("Benchmark result:", result)
|
|
return result
|
|
except Exception as e:
|
|
print(f"Error: {e}")
|
|
import traceback
|
|
traceback.print_exc()
|
|
return None
|
|
|
|
if __name__ == "__main__":
|
|
result = asyncio.run(test_simple_benchmark())
|
|
print("Final result:", result) |