Command Palette

Search for a command to run...

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

regression-performance

БесплатноБез исполняемых скриптовНе проверен

Detect performance regressions by comparing benchmarks across versions with latency, throughput, and statistical significance analysis

jmaglyот jmagly★ 233 звезды на GitHub

Об этом скилле

regression-performance

Detect performance regressions by comparing benchmarks across versions, analyzing latency/throughput degradation, and providing statistical significance testing.

Triggers

Alternate expressions and non-obvious activations (primary phrases are matched automatically from the skill description):

  • "latency regression" → performance benchmark comparison
  • "p99" / "p95" → percentile-based performance metrics
  • "benchmark diff" → performance baseline comparison

Purpose

This skill detects performance regressions across software versions by:

  • Comparing latency metrics (p50, p95, p99) between baseline and current versions
  • Detecting throughput regressions (requests/sec, transactions/sec)
  • Identifying memory regressions (heap growth, memory leaks)
  • Analyzing resource utilization (CPU, disk I/O, network)
  • Running benchmark comparisons with statistical significance testing
  • Generating performance regression reports with visualizations

Behavior

When triggered, this skill:

  1. Identifies baseline version:

    • Detect last known good version from git tags
    • Load baseline benchmark results
    • Extract performance metrics from monitoring
  2. Runs performance benchmarks:

    • Execute load tests using k6, Artillery, or wrk
    • Capture latency distributions (p50, p95, p99)
    • Measure throughput (req/s, TPS)
    • Profile memory usage and heap growth
    • Monitor CPU and I/O utilization
  3. Performs statistical comparison:

    • Calculate delta and percentage change
    • Apply statistical significance tests (t-test, Mann-Whitney U)
    • Determine if degradation exceeds threshold
    • Account for variance and noise
  4. Detects regression patterns:

    • Latency spikes at specific percentiles
    • Throughput capacity reduction
    • Memory leak indicators (growing heap)
    • CPU saturation points
    • I/O bottlenecks
  5. Generates regression report:

    • Performance comparison tables
    • Percentile distribution graphs
    • Time-series trend analysis
    • Root cause indicators
    • Recommendations
  6. Logs regression findings:

    • Create regression register entry
    • Tag commits with performance impact
    • Alert on threshold violations

Performance Metrics Model

┌─────────────────────┐
│   BASELINE v2.3.0   │
├─────────────────────┤
│ p50:  45ms          │
│ p95: 120ms          │
│ p99: 180ms          │
│ RPS: 2500           │
│ Mem: 256MB          │
└─────────────────────┘
         │
         ▼ Compare
┌─────────────────────┐
│   CURRENT v2.4.0    │
├─────────────────────┤
│ p50:  52ms (+15%)   │  ⚠️ REGRESSION
│ p95: 145ms (+21%)   │  ⚠️ REGRESSION
│ p99: 220ms (+22%)   │  ⚠️ REGRESSION
│ RPS: 2100 (-16%)    │  ⚠️ REGRESSION
│ Mem: 312MB (+22%)   │  ⚠️ REGRESSION
└─────────────────────┘
         │
         ▼
┌─────────────────────┐
│ REGRESSION REPORT   │
│                     │
│ Type: Latency       │
│ Severity: HIGH      │
│ Confidence: 99.5%   │
│ Root Cause: TBD     │
└─────────────────────┘

Metric Categories

Latency Metrics

Metric Description Threshold Tool
p50 (median) 50th percentile latency +10% k6, Artillery, wrk
p95 95th percentile latency +15% k6, Artillery, wrk
p99 99th percentile latency +20% k6, Artillery, wrk
max Maximum observed latency +30% k6, Artillery, wrk

Throughput Metrics

Metric Description Threshold Tool
Requests/sec HTTP requests per second -10% k6, wrk, ab
Transactions/sec Business transactions per second -10% Custom
Bytes/sec Network throughput -15% iperf3, iftop
Queries/sec Database query throughput -10% pgbench, sysbench

Memory Metrics

Metric Description Threshold Tool
Heap size JavaScript heap usage +20% Node.js heap snapshot
RSS Resident set size +20% ps, top
Memory growth rate MB/hour increase >10 MB/hour Continuous profiling
GC pressure Garbage collection frequency +30% Node.js --trace-gc

Resource Metrics

Metric Description Threshold Tool
CPU utilization Average CPU usage +20% mpstat, top
Disk I/O wait I/O wait percentage +25% iostat
Network bandwidth Network utilization +15% iftop, nethogs
File descriptors Open file handles +30% lsof

Benchmark Tools Integration

k6 Load Testing

// benchmark.k6.js
import http from 'k6/http';
import { check, sleep } from 'k6';

export let options = {
  stages: [
    { duration: '2m', target: 100 },   // Ramp up
    { duration: '5m', target: 100 },   // Steady state
    { duration: '2m', target: 0 },     // Ramp down
  ],
  thresholds: {
    'http_req_duration': ['p(50)<100', 'p(95)<200', 'p(99)<300'],
    'http_req_failed': ['rate<0.01'],
  },
};

export
Полный SKILL.md на GitHub

Установить regression-performance в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл regression-performance?

Detect performance regressions by comparing benchmarks across versions with latency, throughput, and statistical significance analysis

Как установить скилл regression-performance?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл regression-performance запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

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

Сравнить regression-performance с