Skip to content
Back to skills

K6 Performance

ASecurity

Performance and load testing patterns for AI coding agents. Enforces quantitative SLA thresholds and progressive virtual user (VU) ramps.

  • 4 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added October 7, 2026
ai-agentsjavascripttypescriptgojavatestingapiperformance

Works with

  • api

Security analysis

A100/100

Scanned October 7, 2026

npx -y skills add romangalaxys10-spec/fable --skill k6-performance --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of K6 Performance?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for K6 Performance
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/romangalaxys10-spec-k6-performance/badge)](https://www.skillsdirectory.com/skills/romangalaxys10-spec-k6-performance)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: k6-performance
title: Grafana k6 Load & Performance Testing
category: Performance & Reliability
testingTypes:
  - Performance
  - Load
  - Stress
frameworks:
  - k6
languages:
  - JavaScript
  - TypeScript
author: Pramod Dutta (QASkills.sh)
---

# Grafana k6 Load & Performance Testing Patterns

Performance and load testing patterns for AI coding agents. Enforces quantitative SLA thresholds and progressive virtual user (VU) ramps.

## Core Mental Model

1. **Thresholds as Quality Gates**:
   - Every performance test must specify strict pass/fail SLA criteria.
   - Example: 95% of requests under 300ms, 99% under 600ms, error rate under 1%.

2. **Workload Modeling**:
   - Ramp-up: Progressively increase VUs to warm up caches and connections.
   - Steady-state: Hold target concurrency for sustained measurement.
   - Ramp-down: Gracefully tear down connections.

## Pattern Implementation

```javascript
import http from 'k6/http';
import { check, sleep } from 'k6';

export const options = {
  stages: [
    { duration: '30s', target: 20 },  // Ramp-up to 20 users
    { duration: '1m', target: 20 },   // Steady state
    { duration: '15s', target: 0 },   // Ramp-down
  ],
  thresholds: {
    http_req_duration: ['p(95)<300', 'p(99)<600'], // 95% < 300ms
    http_req_failed: ['rate<0.01'],                 // < 1% errors
  },
};

export default function () {
  const res = http.get('http://localhost:3000/api/status');
  check(res, {
    'status is 200': (r) => r.status === 200,
    'response under 200ms': (r) => r.timings.duration < 200,
  });
  sleep(1);
}
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.