worker-benchmarks
What it does
This skill runs benchmarks on the worker system of the agentic-flow tool, measuring speed and memory use across several parts. It is for people who want measured numbers on how their background workers perform.
When to use it
- βWhen you want to check how quickly the worker system responds.
- βWhen you want to compare results before and after a change.
- βWhen you need a benchmark report on specific worker parts such as caching.
Skill link
https://github.com/ruvnet/ruflo/blob/main/.agents/skills/worker-benchmarks/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βRun the full worker benchmark suite and tell me which part is slowest.β
5 new skills a week. 1 minute to read.
How it works
The agent runs the benchmark commands for each worker part, records timing and memory figures, and reports the results against the targets.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Worker Benchmarks Skill
Run comprehensive performance benchmarks for the agentic-flow worker system.
Quick Start
# Run full benchmark suite
npx agentic-flow workers benchmark
# Run specific benchmark
npx agentic-flow workers benchmark --type trigger-detection
npx agentic-flow workers benchmark --type registry
npx agentic-flow workers benchmark --type agent-selection
npx agentic-flow workers benchmark --type concurrent
Benchmark Types
1. Trigger Detection (trigger-detection)
Tests keyword detection speed across 12 worker triggers.
- Target: p95 < 5ms
- Iterations: 1000
- Metrics: latency, throughput, histogram
2. Worker Registry (registry)
Tests CRUD operations on worker entries.
- Target: p95 < 10ms
- Iterations: 500 creates, gets, updates
- Metrics: per-operation latency breakdown
3. Agent Selection (agent-selection)
Tests performance-based agent selection.
- Target: p95 < 1ms
- Iterations: 1000
- Metrics: selection confidence, agent scores
4. Model Cache (cache)
Tests model caching performance.
- Target: p95 < 0.5ms
- Metrics: hit rate, cache size, eviction stats
5. Concurrent Workers (concurrent)
Tests parallel worker creation and updates.
- Target: < 1000ms for 10 workers
- Metrics: per-worker latency, memory usage
6. Memory Key Generation (memory-keys)
Tests memory pattern key generation.
- Target: p95 < 0.1ms
- Iterations: 5000
- Metrics: unique patterns, throughput
Output Format
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
π BENCHMARK RESULTS
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β
Trigger Detection
Operation: detect
Count: 1,000
Avg: 0.045ms | p95: 0.120ms (target: 5ms)
Throughput: 22,222 ops$s
Memory Ξ: 0.12MB
β
Worker Registry
Operation: crud
Count: 1,500
Avg: 1.234ms | p95: 3.456ms (target: 10ms)
Throughput: 810 ops$s
Memory Ξ: 2.34MB
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
π SUMMARY
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Total Tests: 6
Passed: 6 | Failed: 0
Avg Latency: 0.567ms
Total Duration: 2345ms
Peak Memory: 8.90MB
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Integration with Settings
Benchmark thresholds are configured in .claude$settings.json:
{
"performance": {
"benchmarkThresholds": {
"triggerDetection": { "p95Ms": 5 },
"workerRegistry": { "p95Ms": 10 },
"agentSelection": { "p95Ms": 1 },
"memoryKeyGeneration": { "p95Ms": 0.1 },
"concurrentWorkers": { "totalMs": 1000 }
}
}
}
Programmatic Usage
import { workerBenchmarks, runBenchmarks } from 'agentic-flow$workers$worker-benchmarks';
// Run full suite
const suite = await runBenchmarks();
console.log(suite.summary);
// Run individual benchmarks
const triggerResult = await workerBenchmarks.benchmarkTriggerDetection(1000);
const registryResult = await workerBenchmarks.benchmarkRegistryOperations(500);
Performance Optimization Tips
- Model Cache: Enable with
CLAUDE_FLOW_MODEL_CACHE_MB=512 - Parallel Workers: Enable with
CLAUDE_FLOW_WORKER_PARALLEL=true - Warning Suppression: Enable with
CLAUDE_FLOW_SUPPRESS_WARNINGS=true - SQLite WAL Mode: Automatic for better concurrent performance
FAQ
Can I test just one part?
Yes. The skill lists options such as trigger detection, registry and model cache tests.
What do the targets mean?
The skill lists target response times for each test, so you can see if a part is within its goal.
Does it need agentic-flow installed?
Yes. The skill runs commands from the agentic-flow tool.
Details
Original description by the author
Run comprehensive worker system benchmarks and performance analysis
repo: ruvnet/ruflo
Popularity
- GitHub stars
- 81k
- Ranking position
- #1540
- License
- MIT
- Updated
- 11/2/2026
Comments
- β¦
More skills from this repository
agent-adaptive-coordinator
81kHelps your agent split and rebalance a group of AI agents as the workload changes, choosing a layout that fits the task.
agent-agent
81kTeaches your agent to turn a big goal into an ordered plan of actions, and to replan when conditions change.
agent-agentic-payments
81kHelps your agent manage spending mandates for AI shopping, with spend caps, time windows, merchant rules and signed approvals.
agent-analyze-code-quality
81kHelps your agent review code for quality, finding code smells, technical debt and refactoring ideas without changing the files.
Similar skills
openclaw-update
394kHelps your agent update an existing OpenClaw Gateway, choosing the update method that fits how it was installed and keeping your session working.
diagnose-gateway
394kHelps your agent find out why your OpenClaw Gateway is failing by checking settings, channels, and ports without changing anything.
crabbox-apps
394kHelps your agent open and run an app on a temporary cloud machine, then show its view in your chat side panel.