Performance Testing
Load, stress, spike testing with k6/Locust, bottleneck analysis, and performance test automation
Install
npx skills add cosmicstack-labs/mercury-agent-skills --skill performance-testinggit clone --depth 1 https://github.com/cosmicstack-labs/mercury-agent-skills.git /tmp/mercury-agent-skills
mkdir -p ~/.claude/skills
cp -r /tmp/mercury-agent-skills/categories/testing-qa/performance-testing ~/.claude/skills/performance-testingPersonal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.
From the SKILL.md
# Performance Testing
Load, stress, and spike test your systems to ensure reliability at scale.
## Types of Performance Tests
| Type | Goal | Pattern |
|------|------|---------|
| Smoke | Verify basic perf with minimal load | 1-5 users for 1 min |
| Load | Test under expected traffic | Ramp to target, hold 10-30 min |
| Stress | Find breaking point | Ramp up until failure |
| Spike | Handle sudden traffic bursts | Instant 10x load for 2-5 min |
| Endurance | Detect memory leaks over time | Sustained load for 1-24 hrs |
| Soak | Verify long-term stability | 50% load for hours |
## k6 Patterns
```javascript
import http from 'k6/http';
import { check, sleep } from 'k6';
export const options = {
stages: [
{ duration: '2m', target: 100 }, // Ramp up
{ duration: '5m', target: 100 }, // Hold
{ duration: '1m', target: 0 }, // Ramp down
],
thresholds: {
http_req_duration: ['p(95)<500'],
http_req_failed: ['rate<0.01'],
},
};
export default function () {
const res = http.get('https://api.example.com/users');
check(res, {
'status is 200': (r) => r.status === 200,
'response time < 300ms': (r) => r.timings.duration < 300,
});
sleep(1);
}
```
## Bottleneck Analysis Flow
1. Run test → find slow endpoint
2. Check DB query plans
3. Check app server CPU/memory
4. Check external service latency
5. Add caching or optimize query
6. Re-test to verify improvement
## Automation
- Run smoke tests on every PR
- Run full perf suite nightlyDetails
- Skill name
performance-testing- Repository
- cosmicstack-labs/mercury-agent-skills
- Path
categories/testing-qa/performance-testing/SKILL.md- License
- MIT
- Repo updated
- 25 August 2026
FAQ
What does the Performance Testing skill do?
Load, stress, spike testing with k6/Locust, bottleneck analysis, and performance test automation
How do I install the Performance Testing skill?
skills CLI (Claude Code, Cursor, Codex and more): npx skills add cosmicstack-labs/mercury-agent-skills --skill performance-testing. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.
Is Performance Testing popular?
It lives in cosmicstack-labs/mercury-agent-skills, which has 492 GitHub stars and 68 forks.
Related skills
Accessibility
492cosmicstack-labs/mercury-agent-skills
Achieve and maintain WCAG compliance through inclusive design practices, proper ARIA usage, and comprehensive testing methodologies.
Accessibility Testing
492cosmicstack-labs/mercury-agent-skills
WCAG 2.1/2.2 audit, axe, Lighthouse, manual testing, screen reader testing, and remediation
Agent Audit Logging
492cosmicstack-labs/mercury-agent-skills
Implement comprehensive audit logging and reporting for multi-agent systems. Covers event capture, structured logging, traceability, compliance reporting, forensic analysis, and real-time monitoring dashboards for agent actions and decisions.
Test Strategy
492cosmicstack-labs/mercury-agent-skills
Test pyramid, risk-based testing, test planning, coverage metrics, and SDLC integration
E2E Testing
492cosmicstack-labs/mercury-agent-skills
Playwright and Cypress patterns, selectors, assertions, API mocking, visual testing, and CI/CD
Testing Strategies
492cosmicstack-labs/mercury-agent-skills
Comprehensive testing strategy covering unit, integration, e2e, property-based, and mutation testing with practical patterns
Browse the most popular Claude skills, all testing & qa skills, or write your own with the skills generator.