performance-test-starter
Skill1 starsChanged 28 days agoMITView on GitHub
Design and script a first performance test (load, stress, spike, soak) with k6, JMeter, or Locust, with SLO-based thresholds and result interpretation.
In this repository16 other files it gives its agents.
- accessibility-auditSkill
- api-test-generatorSkill
- automation-code-reviewSkill
- bug-report-writerSkill
- ci-cd-and-test-dataSkill
- device-cloud-setupSkill
- flaky-test-triageSkill
- framework-scaffolderSkill
- greenbuild-getting-startedSkill
- llm-app-testingSkill
- mobile-automationSkill
- regression-health-digestSkill
- release-readiness-checklistSkill
- test-plan-from-requirementsSkill
- tools-and-librariesSkill
- visual-testingSkill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 22
Run k6 run -e BASE_URL=https://staging.example.com load.js.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Performance test starter
- Define the goal before writing a script: which user journey or endpoint, the expected traffic (RPS or concurrent users), and the SLOs (e.g. p95 < 500 ms, error rate < 1%). Never load-test production or third-party systems without written approval.
- Pick the test type: smoke (1–2 VUs), load (expected peak), stress (ramp past peak), spike, or soak (hours).
- k6 (JS, CLI-friendly, good in CI):
import http from 'k6/http';
import { check, sleep } from 'k6';
export const options = {
stages: [{ duration: '2m', target: 50 }, { duration: '5m', target: 50 }, { duration: '1m', target: 0 }],
thresholds: { http_req_failed: ['rate<0.01'], http_req_duration: ['p(95)<500'] },
};
export default function () {
const res = http.get(`${__ENV.BASE_URL}/api/products`);
check(res, { 'status 200': (r) => r.status === 200 });
sleep(1);
}Run k6 run -e BASE_URL=https://staging.example.com load.js. A breached threshold gives a non-zero exit code, which fails CI.
4. JMeter (GUI for building, CLI for running): jmeter -n -t plan.jmx -l results.jtl -e -o report/. Use a Thread Group with ramp-up, CSV Data Set Config for data, and Response Assertions. Never run load from the GUI.
5. Locust (Python):
from locust import HttpUser, task, between
class Shopper(HttpUser):
wait_time = between(1, 3)
@task
def browse(self): self.client.get("/api/products")Run locust -f locustfile.py --headless -u 50 -r 5 -t 5m --host https://staging.example.com --csv out.
6. Realism: use think time, varied test data, correlation of tokens, and a warm-up period. Exclude static assets unless they are the target.
7. Interpret: compare p50/p95/p99, throughput and errors against the SLOs. Find the knee point where latency climbs, and correlate with server metrics (CPU, DB, GC). Report the bottleneck hypothesis, not just the numbers.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

