Skip to content
Skillpedia
Deploy & cloud (DevOps)81k Β· #1540

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.md

Copy 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

Use this skill to help me: https://github.com/ruvnet/ruflo/blob/main/.agents/skills/worker-benchmarks/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute β†’

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

  1. Model Cache: Enable with CLAUDE_FLOW_MODEL_CACHE_MB=512
  2. Parallel Workers: Enable with CLAUDE_FLOW_WORKER_PARALLEL=true
  3. Warning Suppression: Enable with CLAUDE_FLOW_SUPPRESS_WARNINGS=true
  4. 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

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills