Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计通过

performance-testing-strategy性能测试策略

Agent Skill

用于辅助测试设计、自动化测试、用例整理和回归验证。它适合让 Agent 编写单元测试、端到端测试、测试计划或根据失败日志定位问题。使用时需要确认项目测试框架、运行命令和夹具数据,避免为了通过测试而改坏真实逻辑;涉及浏览器或外部服务时,应区分本地模拟、测试环境和生产环境。

总安装

412

周安装

17

GitHub Stars

5

下载量

135
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:performance-testing-strategy(性能测试策略)
来源仓库:https://github.com/rcampos09/performance-testing-skills
仓库路径:skills/performance-testing-strategy
安装命令:
npx skills add https://github.com/rcampos09/performance-testing-skills --skill performance-testing-strategy
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/rcampos09/performance-testing-skills --skill performance-testing-strategy

简介

用于辅助测试设计、自动化测试、用例整理和回归验证。

  • 适合编写单元测试、端到端测试或根据失败日志定位问题。
  • 使用时需确认项目测试框架、运行命令和夹具数据,避免误改逻辑。
  • 安装命令:npx skills add https://github.com/rcampos09/performance-testing-skills --skill performance-testing-strategy。
  • 涉及浏览器或外部服务时,应区分本地模拟与生产环境。

SKILL.md

Performance Testing Strategy Designer

Guides QA engineers through designing a complete, structured performance testing strategy by gathering context through targeted questions and applying industry best practices.

Important: Always gather context first (Step 1) before producing any output. Do not skip to recommendations without understanding the system and its constraints.

Output Format

After completing Step 1, deliver a strategy document with these sections:

  1. System Under Test (SUT) summary — what you understood about the application
  2. Recommended test sequence — which test types to run and in what order, with rationale
  3. Per-test definition — for each type: goal, user load, duration, ramp-up, success criteria
  4. Metrics to collect — response times, throughput, error rates, infrastructure metrics
  5. Risks and prerequisites — what must be in place before testing starts

Step 1 — Gather Context

Ask only what you don't know yet. Work through these categories; stop when you have enough to design the strategy. Do not ask all questions at once — group them naturally and wait for answers before continuing.

A. Application Profile

  • What type of application is it? (web app, mobile backend, microservice, batch job, streaming pipeline)
  • What protocol does it use? (HTTP/REST, GraphQL, WebSocket, gRPC, message queue)
  • Is it stateful (sessions, auth tokens) or stateless?
  • Does it have external dependencies? (third-party APIs, databases, caches, message brokers)
  • Does the infrastructure auto-scale, or is capacity fixed?

B. Traffic and Usage Patterns

  • What is the current or expected peak load? (requests/second, concurrent users, transactions/day)
  • Is traffic steady (e.g., internal tool) or spiky (e.g., flash sale, marketing campaign, scheduled batch)?
  • Are there known peak windows? (time of day, day of week, seasonal events)
  • What does a typical user flow look like? (sequence of actions, not just a single endpoint)

C. SLAs and Acceptance Criteria

  • Is there a response time target? (e.g., p95 < 1s, p99 < 2s)
  • Is there a throughput target? (e.g., must handle 500 RPS)
  • What is the acceptable error rate? (e.g., < 0.1% errors under load)
  • Are SLAs defined per endpoint, globally, or both?

D. Environment and Constraints

  • What environment will tests run against? (production-clone, staging, dedicated perf env)
  • Is the environment isolated from production traffic?
  • Are there data constraints? (test users, sanitized data, data volume)
  • Are there infrastructure limits to be aware of? (shared DB, rate limiters, WAF, CDN)
  • What is the available test window? (hours or days available to run tests)

E. Scope and Goals

  • Is this a first-time performance test or a regression run before a release?
  • Is there a specific concern or risk driving this? (new feature, peak event prep, incident post-mortem, capacity planning)
  • What load testing tool will be used? (ask without suggesting — the strategy is tool-agnostic)

Step 2 — Select Test Types

Recommend only the test types that match the stated goals and risks. Do not recommend all five by default — justify each one based on the context gathered.

Load references/TEST-TYPES.md when the user needs detailed definitions, parameters, and decision criteria for each test type.

Quick selection guide

SituationRecommended tests
First time testing, no baselineSmoke → Load
Pre-release regression checkSmoke → Load
Low-risk internal tool (≤ 50 users, no external SLA)Smoke → Load only — stop here, do not add Stress or Spike
Preparing for a peak event (Black Friday, launch)Smoke → Load → Spike
Investigating slowdown under sustained trafficSmoke → Load → Endurance
Finding the system's breaking pointSmoke → Load → Stress
Full strategy for a production-grade systemSmoke → Load → Stress → Spike → Endurance
Time-constrained (< 4 hours)Smoke → Load only

Sequencing rule

Always run Smoke first. Never jump straight to Stress or Spike — a broken baseline wastes time and produces misleading results.


Step 3 — Define Each Test

For every recommended test type, produce a precise definition. Use the templates below. Express load in users or RPS — never in tool-specific syntax.

Smoke Test

Goal:          Verify the test setup works and the system handles minimal load
Users:         2–5 virtual users
Duration:      2–5 minutes
Ramp-up:       None (inject all users at once) or 30 seconds
Success:       0 errors, all responses within 2× the SLA threshold
When to skip:  Never — always run smoke first

Load Test

Goal:          Measure behavior under expected production load
Users:         Peak load × 1.0 (baseline) and peak load × 1.2 (safety buffer)
Duration:      30–60 minutes of steady state (after ramp-up)
Ramp-up:       10–20% of total duration (e.g., 10 min ramp for a 60 min test)
Success:       Error rate < 0.1%, p95 within SLA, p99 within 2× SLA
When to skip:  Only if a load test was run recently with no system changes

Stress Test

Goal:          Find the maximum load before degradation or failure
Users:         Start at peak load; increase by 20–25% each step until breaking point
Duration:      Until failure or throughput plateaus — typically 30–90 minutes
Ramp-up:       Staircase: add load increments every 5–10 minutes
Success:       Identify the breaking point; confirm graceful degradation and recovery
When to skip:  When the only goal is SLA validation (not capacity exploration)

Spike Test

Goal:          Verify behavior during sudden, large traffic bursts
Users:         Baseline load → sudden jump to 2–5× peak → return to baseline
Duration:      10–20 minutes total (the spike itself: 2–5 minutes)
Ramp-up:       Instantaneous spike; gradual recovery back to baseline
Success:       System survives without crashing; recovers to baseline SLA within a defined window
When to skip:  When traffic is inherently steady with no burst patterns

Endurance / Soak Test

Goal:          Detect issues that only appear over time: memory leaks, connection exhaustion, resource drift
Users:         70–80% of peak load (sustainable, not maximum)
Duration:      2 hours minimum; 8–24 hours for critical or long-running systems
Ramp-up:       Standard ramp (10–15 min)
Success:       Response times and error rates at the end are within 10% of values at the start of steady state
When to skip:  Short-term regression only — note the risk and schedule a soak test later

Step 4 — Define Metrics

Load references/METRICS-AND-SLAS.md when the user asks about which metrics to collect, how to set SLA thresholds, or what to monitor on the infrastructure side.

Minimum metrics for every test

Application-level (collected by the load testing tool):

  • Response time: p50, p90, p95, p99 — never rely on mean alone
  • Throughput: requests/second or transactions/second
  • Error rate: percentage of failed requests (timeouts + error responses)
  • Concurrent users / active sessions over time

Infrastructure-level (collected via monitoring — APM, metrics platform, cloud dashboards):

  • CPU utilization (investigate if sustained > 70%)
  • Memory utilization (watch for upward drift in Endurance tests)
  • Network I/O (saturation indicates infrastructure bottleneck, not application bottleneck)
  • Database: connection pool usage, slow query rate, lock waits
  • Runtime-specific (if applicable): heap usage, garbage collection frequency and pause duration
Instruction: Express all metrics in generic terms — never include runtime-specific flags, API calls, or platform-specific names. Use "heap usage" and "GC pause duration", not -XX:+HeapDumpOnOutOfMemoryError, process.on(), HeapInuse, or any language/runtime syntax. The strategy must remain tool-agnostic throughout Steps 4 and 5.

Step 5 — Prerequisites Checklist

Before running any test, verify:

  • Test environment is isolated — test traffic will not affect real users or production data
  • Test data is prepared — realistic volume of users, products, orders, or domain entities
  • Data strategy is defined — how test data is consumed: cycled, randomized, or unique per run
  • Monitoring is active — metrics collection is running *before* the test starts
  • Baseline metrics exist — at minimum, a smoke test result to compare against
  • Team is available — someone can monitor and stop the test if needed
  • Rollback plan exists — for tests that could cause data corruption or service interruption
  • Third-party services are stubbed or rate-limited — avoid generating real charges or hitting partner quotas
  • Rate limiters / WAF are configured for testing — or bypassed in the test environment
  • Alerts are suppressed — to avoid on-call noise during intentional stress or spike tests

Common Strategy Mistakes

1. Starting with Stress before Load

Running a stress test without a load test baseline means you cannot distinguish "the system breaks at 500 users" from "the system was already broken at 100 users."

2. Testing in production without isolation

Even read-only load tests can cause production incidents (DB CPU spikes, cache eviction, rate limiter triggers). Always use an isolated environment.

3. Using unrealistic user flows

Testing only a single endpoint (e.g., a health check) tells you nothing about real user behavior. Model the top 2–3 user journeys from analytics or business requirements.

4. Ignoring think time between requests

Zero think time between requests generates 10–100× more load than real users produce. Every scenario must include realistic pauses that reflect actual user behavior.

5. No infrastructure monitoring

Knowing response times without knowing CPU/memory/DB state means you cannot diagnose *why* the system degraded. Always run infrastructure monitoring in parallel with the load test.

6. Short endurance tests

A 5-minute soak test finds nothing. Memory leaks and connection exhaustion typically appear after 30–120 minutes of sustained load. Minimum viable soak: 2 hours.

7. Treating test results as absolute truth

Results are only valid for the environment, data volume, and configuration tested. Always document these conditions alongside the results — a test in staging with 10% of production data is not a production capacity test.

8. Testing the wrong workload model

Concurrent users and arrival rate (RPS) are not interchangeable. Understand whether your system should be tested with a fixed number of concurrent users (closed model) or a fixed arrival rate of new requests (open model). Using the wrong model produces misleading throughput numbers.


References

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

36.36%
按下载量换算49

Claude

29.64%
按下载量换算40

Cursor

20.22%
按下载量换算27

Gemini CLI

9.79%
按下载量换算13

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills