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: File edits

rUv3b5fce9d6d3a
diff --git a/v3/@claude-flow/cli/src/mcp-tools/performance-tools.ts b/v3/@claude-flow/cli/src/mcp-tools/performance-tools.ts
index 52f1260886..d776f974dd 100644
--- a/v3/@claude-flow/cli/src/mcp-tools/performance-tools.ts
+++ b/v3/@claude-flow/cli/src/mcp-tools/performance-tools.ts
@@ -359,14 +359,26 @@ export const performanceTools: MCPTool[] = [
savePerfStore(store);
+ // Calculate comparison vs previous benchmarks
+ const allBenchmarks = Object.values(store.benchmarks);
+ const previousBenchmarks = allBenchmarks
+ .filter(b => suitesToRun.includes(b.name) && b.createdAt < results[0]?.name)
+ .slice(-suitesToRun.length);
+
+ const comparison = previousBenchmarks.length > 0
+ ? {
+ vsPrevious: `${results.reduce((sum, r) => sum + r.opsPerSec, 0) > previousBenchmarks.reduce((sum, b) => sum + b.results.opsPerSecond, 0) ? '+' : ''}${Math.round(((results.reduce((sum, r) => sum + r.opsPerSec, 0) / previousBenchmarks.reduce((sum, b) => sum + b.results.opsPerSecond, 0)) - 1) * 100)}% vs previous`,
+ totalBenchmarks: allBenchmarks.length,
+ }
+ : { note: 'First benchmark run - no comparison available', totalBenchmarks: allBenchmarks.length };
+
return {
+ _real: true,
suite,
iterations,
+ warmup,
results,
- comparison: {
- vsBaseline: '+15% improvement',
- vsPrevious: '+3% improvement',
- },
+ comparison,
timestamp: new Date().toISOString(),
};
},