搜索

PythonReactSEOPDF
GitHub Skill

performance-test-planning

Design performance test strategies including load profiles, capacity planning, SLA validation, and .NET performance testing with NBomber and k6.

melodic-software☆ 21 仓库 Stars4 仓库 Forks

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

查看来源 ↗使用指南

技能说明

Performance Test Planning

When to Use This Skill

Use this skill when:

  • Performance Test Planning tasks - Designing load profiles, capacity planning, SLA validation
  • Planning or design - Need guidance on performance testing approaches
  • Best practices - Want to follow established patterns and standards

Overview

Performance testing validates that systems meet non-functional requirements under expected and peak loads. Effective planning identifies critical paths, defines realistic load profiles, and establishes measurable success criteria.


Performance Test Types

Type Purpose Load Pattern Duration
Load Test Validate expected load Normal traffic 15-60 min
Stress Test Find breaking point Increasing until failure Until failure
Soak Test Find memory leaks Sustained normal load 4-24 hours
Spike Test Handle sudden bursts Sharp increase/decrease 10-30 min
Capacity Test Determine max capacity Incremental increase Variable
Scalability Test Validate horizontal scale Increasing with resources Variable

Load Profile Patterns

Ramp-Up Pattern
Users
  │
100├────────────────────────●
  │                   ●────
  │              ●────
50├         ●────
  │    ●────
  │●────
 0└─────────────────────────►
   0    1    2    3    4    5 min
Spike Pattern
Users
  │         ●
  │        ╱ ╲
500├──────╱   ╲──────
  │     ╱     ╲
  │    ╱       ╲
100├───●         ●───
  │
 0└─────────────────────────►
   0   5   10  15  20 min

Quick Reference: Metrics Targets

Metric Target Critical Threshold
Response Time (p50) < 100ms < 200ms
Response Time (p95) < 200ms < 500ms
Response Time (p99) < 500ms < 1000ms
Throughput > 1000 RPS > 500 RPS
Error Rate < 0.1% < 1%
CPU Utilization < 70% < 90%

Key Formulas

Little's Law: L = λ × W (Concurrent requests = Arrival rate × Response time)

Throughput: Concurrent Users / Average Response Time

Apdex: (Satisfied + Tolerating/2) / Total


References

Reference Content When to Load
performance-strategy-template.md Full strategy template, scope, environment, scenarios Planning performance test strategy
nbomber-examples.md Basic load test, complex scenarios, data-driven tests Implementing .NET performance tests
capacity-planning.md Little's Law, throughput, Apdex, BenchmarkDotNet Capacity planning calculations

Integration Points

Inputs from:

  • Non-functional requirements → SLA targets
  • Architecture documents → Component topology
  • test-strategy-planning skill → Test scope

Outputs to:

  • CI/CD pipeline → Automated performance gates
  • Monitoring systems → Baseline metrics
  • Capacity planning → Infrastructure sizing

Test Scenarios

Scenario 1: Planning performance strategy

Query: "Help me create a performance test plan for our API"

Expected: Skill activates, provides strategy template, guides through objectives and scope

Scenario 2: Implementing load tests

Query: "Show me how to use NBomber for load testing in .NET"

Expected: Skill activates, loads nbomber-examples.md reference, provides code examples

Scenario 3: Capacity planning

Query: "How do I calculate capacity requirements for 10,000 users?"

Expected: Skill activates, loads capacity-planning.md reference, provides formulas and templates


Last Updated: 2025-12-28

Version History

  • v1.1.0 (2025-12-28): Refactored to progressive disclosure - extracted templates/examples to references/
  • v1.0.0 (2025-12-26): Initial release

使用示例

查看来源仓库中的使用示例与配置说明。

查看来源 ↗

来源历史

收录时间
2026-01-20
索引更新时间
2026-02-04
Branch
main

收录与同步日期属于本站记录。源码修改历史请查看来源仓库。

GitHub ↗

chat Comments (0)

chat_bubble_outline

No comments yet. Be the first to share your thoughts!