performance-testing

Solid

Load testing with k6/Artillery, response time thresholds, memory leak detection, N+1 query detection, and CI integration.

Testing & QA 495 stars 41 forks Updated 1 months ago MIT

Install

View on GitHub

Quality Score: 86/100

Stars 20%
90
Recency 20%
75
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Performance Testing ## k6 Script Patterns ### Basic scenario with stages ```javascript // k6 run load-test.js import http from 'k6/http' import { check, sleep } from 'k6' export const options = { stages: [ { duration: '30s', target: 10 }, // ramp up { duration: '1m', target: 50 }, // hold load { duration: '30s', target: 0 }, // ramp down ], thresholds: { http_req_duration: ['p(95)<200', 'p(99)<500'], http_req_failed: ['rate<0.01'], // < 1% error rate }, } export default function () { const res = http.get('https://api.example.com/users') check(res, { 'status is 200': (r) => r.status === 200, 'response time < 200ms': (r) => r.timings.duration < 200, }) sleep(1) } ``` ### POST with auth ```javascript export default function () { const payload = JSON.stringify({ email: 'test@example.com', password: 'secret' }) const headers = { 'Content-Type': 'application/json' } const res = http.post(`${BASE_URL}/auth/login`, payload, { headers }) const token = res.json('token') http.get(`${BASE_URL}/profile`, { headers: { Authorization: `Bearer ${token}` }, }) } ``` ## Load Test Types | Type | Duration | Target VU | Purpose | |------|----------|-----------|---------| | Smoke | 1 min | 1-5 | Verify script works, no regressions | | Load | 30 min | expected peak | Normal production conditions | | Stress | 60 min | 2-3x peak | Find breaking point | | Spike | 2 min | 10x peak → 0 | Sudden traffic burst behavior ...

Details

Author
vibeeval
Repository
vibeeval/vibecosystem
Created
2 months ago
Last Updated
1 months ago
Language
C#
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category