界面已本地化;技能介绍与说明文档按所选语言由 AI 自动翻译,代码、命令、路径和专业术语保留原文,以原作者文档为准。
探索技能
开发与工程 · SKILL.md

load-testing

load-testing

【开发与工程】Plan load testing — workload modeling, user journey scripts, ramp-up profiles, SLA thresholds, bottleneck identification, and capacity recommendations. TRIGGER when: user says /load-testing, needs to plan performance testing, or asks about stress testing and capacity validation.

独立 GitHub 快照 · 自动分类 · 以原作者文档为准

技能说明

GitHub

name: load-testing description: > Plan load testing — workload modeling, user journey scripts, ramp-up profiles, SLA thresholds, bottleneck identification, and capacity recommendations. TRIGGER when: user says /load-testing, needs to plan performance testing, or asks about stress testing and capacity validation. argument-hint: "[system or endpoint to load test]" user-invocable: true

Load Testing Plan

Process

Step 1: Define Test Objectives

Test TypePurposeWhen to Use
Load testValidate under expected loadPre-release
Stress testFind breaking pointCapacity planning
Soak testFind memory leaks, degradationPre-release
Spike testHandle sudden traffic surgesEvent planning

Step 2: Model Workload

ScenarioRequests/secUser Pattern% of Traffic
Browse catalogX rpsRead-heavyX%
SearchX rpsCPU-intensiveX%
CheckoutX rpsWrite + external callsX%
API integrationX rpsBurst patternX%

Step 3: Design Ramp-Up Profile

PhaseDurationLoadPurpose
Warmup5 min10% targetCache warmup
Ramp10 min10% → 100%Gradual increase
Steady state30 min100% targetSustained load
Peak10 min150% targetHeadroom validation
Cool down5 minDecrease to 0Graceful degradation

Step 4: Set SLA Thresholds

MetricTargetFailure Threshold
p50 latency< 200ms> 500ms
p95 latency< 500ms> 2000ms
p99 latency< 1000ms> 5000ms
Error rate< 0.1%> 1%
ThroughputX rps< 80% target

Step 5: Execute and Monitor

MonitorWhat to Watch
ApplicationLatency, error rate, throughput
InfrastructureCPU, memory, disk I/O, network
DatabaseQuery time, connections, locks
External depsAPI latency, timeout rate

Step 6: Analyze and Recommend

BottleneckEvidenceRecommendation
[component][metric at failure][scaling/optimization]

Output Format

## Load Test Report: [System]
### Test Config: [Type, duration, peak load]
### Results Summary
| Metric | Target | Actual | Status |
|--------|--------|--------|--------|
### Bottlenecks: [Identified with evidence]
### Capacity: [Max sustainable load]
### Recommendations: [Scaling/optimization actions]

Quality Checklist

  • Workload model reflects production patterns
  • Test environment matches production (or scaled proportionally)
  • SLA thresholds defined before testing
  • All system layers monitored during test
  • Results analyzed for bottlenecks
  • Recommendations are specific and actionable

Edge Cases

  • For serverless, test cold start impact under load
  • For distributed systems, test cross-region latency
  • If test env differs from prod, document scaling assumptions
我的收藏