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

rUv13607febfe98
diff --git a/v3/@claude-flow/cli/src/commands/embeddings.ts b/v3/@claude-flow/cli/src/commands/embeddings.ts
index c6dd6c8c9c..1896e2ce63 100644
--- a/v3/@claude-flow/cli/src/commands/embeddings.ts
+++ b/v3/@claude-flow/cli/src/commands/embeddings.ts
@@ -1374,7 +1374,9 @@ const benchmarkCommand: Command = {
opsPerSec: `${(1000 * batchSize / seqTime).toFixed(1)}`
});
- // Test 4b: Parallel batch embed (2-4x faster for batch operations)
+ // Test 4b: Parallel batch embed
+ // Note: Local ONNX is CPU-bound so parallelism has limited benefit
+ // Parallelism gives 2-4x speedup for API-based providers (OpenAI, etc.)
output.writeln(output.dim(`Testing parallel batch of ${batchSize}...`));
const parallelTexts = Array.from({ length: batchSize }, (_, i) => `Parallel batch text ${i + 1}`);
const parallelStart = Date.now();
@@ -1384,7 +1386,7 @@ const benchmarkCommand: Command = {
results.push({
test: `Parallel (n=${batchSize})`,
time: `${parallelTime}ms total (${(parallelTime / batchSize).toFixed(1)}ms/item)`,
- opsPerSec: `${(1000 * batchSize / parallelTime).toFixed(1)} (${speedup.toFixed(1)}x speedup)`
+ opsPerSec: `${(1000 * batchSize / parallelTime).toFixed(1)} (${speedup.toFixed(2)}x vs seq)`
});
// Test 5: Cache hit (same text)