performance-modeling
Model system performance, predict latency under load, identify bottlenecks. Use when optimizing performance or capacity planning.
от sethdford★ 51 звезда на GitHub
Установить performance-modeling в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Performance Modeling
Build performance models to predict latency, throughput, and identify bottlenecks under various load profiles.
Context
You are optimizing system performance or planning capacity. The user has latency issues or wants to predict performance. Read their current metrics and workload characteristics.
Domain Context
Based on queueing theory and performance modeling research:
- Little's Law: Latency = Queue Depth / Throughput
- Queueing Models: M/M/1 (simple), M/M/c (multi-server) help predict latency distribution
- Response Time Hierarchy: Network < Cache < In-Memory < Disk → Database
- Throughput Ceiling: Database connections, CPU cores, network bandwidth impose limits
- Tail Latency: p99 and p99.9 matter more than average; optimize for tail, not mean
Instructions
Measure Current Performance: Establish baseline latency (p50, p95, p99) and throughput (requests/sec). Identify bottleneck component (database, cache, service).
Build Queueing Model: Model each bottleneck resource (database, cache, API server) as M/M/1 queue. Predict latency at 2x, 5x current load.
Identify Breaking Points: At what load does latency exceed acceptable threshold? At what load do errors appear? Plot latency vs load curve.
Model Optimizations: For each identified bottleneck, model impact of optimization:
- Database: Add read replicas, caching, indexes
- Network: Add CDN, compression
- CPU: Add instances, optimize code
Compare Trade-offs: Cost of optimization (resources, effort) vs latency gain. Choose changes with best ROI.
Anti-Patterns
- Optimizing Average Instead of Tail: p50 is 10ms but p99 is 500ms. Optimize p50 (easy) while ignoring p99 (impacts users). Guard: Always track and optimize p99 latency.
- Missing Measurement Points: Only measure at entry point, missing internal latency. Result: can't see where time is spent. Guard: Measure at every component boundary; trace requests.
- Modeling Without Validation: Build model, predict 2x scaling works, it doesn't. Guard: Validate model against actual load test; adjust assumptions if wrong.
- Forgetting Overhead: Model predicts 50ms latency but actual is 200ms. Result: overhead (GC, context switching) not accounted. Guard: Measure wall-clock time including all overhead.
Further Reading
- The Art of Computer Systems Performance Analysis by Raj Jain — queueing theory and modeling
- Designing Data-Intensive Applications by Martin Kleppmann — performance analysis at scale
- Google's Performance Optimization — case studies and methodologies
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл performance-modeling?
Model system performance, predict latency under load, identify bottlenecks. Use when optimizing performance or capacity planning.
Как установить скилл performance-modeling?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл performance-modeling запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…