Langsung ke konten
Skillpedia
Deploy & cloud (DevOps)81k Β· #1540

worker-benchmarks

Fungsinya

Skill ini menjalankan benchmark pada sistem worker dari alat agentic-flow, mengukur kecepatan dan pemakaian memori di beberapa bagian. Skill ini untuk Anda yang ingin angka terukur tentang performa worker latar belakang.

Kapan dipakai

  • βœ“Saat Anda ingin memeriksa seberapa cepat sistem worker merespons.
  • βœ“Saat Anda ingin membandingkan hasil sebelum dan sesudah sebuah perubahan.
  • βœ“Saat Anda membutuhkan laporan benchmark untuk bagian worker tertentu, seperti caching.

Link skill

https://github.com/ruvnet/ruflo/blob/main/.agents/skills/worker-benchmarks/SKILL.md

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/ruvnet/ruflo/blob/main/.agents/skills/worker-benchmarks/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit β†’

Contoh permintaan ke AI

β€œJalankan seluruh rangkaian benchmark worker dan beri tahu saya bagian mana yang paling lambat.”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Agent menjalankan perintah benchmark untuk setiap bagian worker, mencatat angka waktu dan memori, lalu melaporkan hasilnya terhadap target.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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
Pertanyaan umum

Bisakah saya menguji hanya satu bagian?

Bisa. Skill ini mendaftar opsi seperti deteksi pemicu, pengujian registry, dan pengujian cache model.

Apa arti targetnya?

Skill ini mendaftar target waktu respons untuk setiap tes, sehingga Anda bisa melihat apakah suatu bagian berada dalam tujuannya.

Apakah perlu agentic-flow terpasang?

Ya. Skill ini menjalankan perintah dari alat agentic-flow.

Detail

Deskripsi asli dari pembuat

Run comprehensive worker system benchmarks and performance analysis

repo: ruvnet/ruflo

Popularitas

Bintang GitHub
81k
Peringkat
#1540
Lisensi
MIT
Diperbarui
2/11/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa