Performance Test Scenario Generator
БесплатноБез исполняемых скриптовНе проверенGenerate realistic performance test scenarios with load profiles, ramp-up patterns, think times, and acceptance criteria derived from production traffic…
от PramodDutta★ 253 звезды на GitHubОб этом скилле
Performance Test Scenario Generator
Performance testing validates that a system meets speed, scalability, and stability requirements under expected and extreme load conditions. The difference between a performance test that provides actionable insights and one that generates misleading data comes down to scenario design. Realistic scenarios mirror actual user behavior, incorporate proper think times, follow genuine navigation patterns, and simulate the mix of operations that production traffic exhibits. This skill guides AI coding agents through generating performance test scenarios that produce trustworthy, actionable results.
Core Principles
Production Traffic as the Source of Truth: Every load profile, user journey, and scenario mix should be derived from production analytics, access logs, or APM data. Guessing at traffic patterns produces misleading test results that give false confidence.
Think Time Realism: Real users pause between actions to read content, fill forms, and make decisions. Tests without think times create artificially aggressive load patterns that stress the system in ways production traffic never would.
Scenario Mixing Reflects Reality: Production traffic is never a single endpoint being hit uniformly. A realistic test combines browsing, searching, purchasing, and administrative actions in proportions that match observed usage patterns.
Incremental Load Application: Applying full load instantly does not represent real-world traffic growth. Ramp-up patterns allow the system to warm caches, initialize connection pools, and reach steady state before measurement begins.
Threshold-Based Pass/Fail Criteria: Performance tests without defined thresholds are observational exercises, not tests. Every scenario must include specific, measurable acceptance criteria tied to business requirements.
Correlation and Parameterization: Tests using hardcoded values do not exercise the same code paths as production requests. Dynamic values extracted from responses and parameterized from data files ensure realistic request variation.
Environment Parity Awareness: Performance test results are only meaningful when the test environment closely resembles production. Document environment differences and adjust expectations accordingly.
Project Structure
performance-tests/
├── src/
│ ├── scenarios/
│ │ ├── browse-catalog.ts
│ │ ├── search-and-filter.ts
│ │ ├── checkout-flow.ts
│ │ ├── api-crud-operations.ts
│ │ └── user-registration.ts
│ ├── profiles/
│ │ ├── load-test.ts
│ │ ├── stress-test.ts
│ │ ├── spike-test.ts
│ │ ├── soak-test.ts
│ │ └── breakpoint-test.ts
│ ├── helpers/
│ │ ├── auth.ts
│ │ ├── data-generators.ts
│ │ ├── correlation.ts
│ │ └── think-time.ts
│ ├── thresholds/
│ │ └── sla-definitions.ts
│ └── data/
│ ├── users.csv
│ ├── products.json
│ └── search-terms.csv
├── jmeter/
│ ├── test-plans/
│ │ ├── load-test.jmx
│ │ └── stress-test.jmx
│ ├── data/
│ │ └── users.csv
│ └── scripts/
│ └── run-test.sh
├── results/
│ └── .gitkeep
├── dashboards/
│ └── grafana-k6-dashboard.json
├── k6.config.ts
└── package.json
Load Profile Design
Constant Load Profile
A constant load profile maintains a fixed number of virtual users throughout the test duration. This is the simplest profile, useful for establishing baseline performance metrics.
// src/profiles/constant-load.ts
import http from 'k6/http';
import { check, sleep } from 'k6';
import { Options } from 'k6/options';
export const options: Options = {
scenarios: {
constant_load: {
executor: 'constant-vus',
vus: 50,
duration: '10m',
},
},
thresholds: {
http_req_duration: ['p(95)<500', 'p(99)<1500'],
http_req_failed: ['rate<0.01'],
http_reqs: ['rate>100'],
},
};
export default function () {
const res = http.get('https://api.example.com/products');
check(res, {
'status is 200': (r) => r.status === 200,
'response time < 500ms': (r) => r.timings.duration < 500,
});
sleep(Math.random() * 3 + 1); // 1-4 second think time
}
Ramp-Up Load Profile
Ramp-up profiles gradually increase load to identify the point at which performance degrades. This is the most common pattern for standard load tests.
// src/profiles/load-test.ts
import http from 'k6/http';
import { check, sleep } from 'k6';
import { Options } from 'k6/options';
import { browseCatalog } from '../scenarios/browse-catalog';
import { searchAndFilter } from '../scenarios/search-and-filter';
import { checkoutFlow } from '../scenarios/checkout-flow';
export const options: Options = {
stages: [
{ duration: '2m', target: 50 }, // Ramp up to 50 users
{ duration: '5m', target: 50 }, // Hold at 50 users
{ duration: '2m', target: 100 }, // Ramp up to 100 users
{ duration: '5m', target: 100 }, /
Установить Performance Test Scenario Generator в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл Performance Test Scenario Generator?
Generate realistic performance test scenarios with load profiles, ramp-up patterns, think times, and acceptance criteria derived from production traffic analysis
Как установить скилл Performance Test Scenario Generator?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Performance Test Scenario Generator запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic