Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

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от 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

  1. 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.

  2. 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.

  3. 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.

  4. 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.

  5. 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.

  6. 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.

  7. 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 },   /
Полный SKILL.md на GitHub

Установить 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), без исполняемых скриптов.

Похожие скиллы

Сравнить Performance Test Scenario Generator с