stress-testing▌
aj-geddes/useful-ai-prompts · updated Apr 8, 2026
Stress testing pushes systems beyond normal operating capacity to identify breaking points, failure modes, and recovery behavior. It validates system stability under extreme conditions and helps determine maximum capacity before degradation or failure.
Stress Testing
Table of Contents
Overview
Stress testing pushes systems beyond normal operating capacity to identify breaking points, failure modes, and recovery behavior. It validates system stability under extreme conditions and helps determine maximum capacity before degradation or failure.
When to Use
- Finding system capacity limits
- Identifying breaking points
- Testing auto-scaling behavior
- Validating error handling under load
- Testing recovery after failures
- Planning capacity requirements
- Verifying graceful degradation
- Testing spike traffic handling
Quick Start
Minimal working example:
// stress-test.js
import http from "k6/http";
import { check, sleep } from "k6";
import { Rate } from "k6/metrics";
const errorRate = new Rate("errors");
export const options = {
stages: [
// Stress testing: Progressive load increase
{ duration: "2m", target: 100 }, // Normal load
{ duration: "5m", target: 100 }, // Sustain normal
{ duration: "2m", target: 200 }, // Above normal
{ duration: "5m", target: 200 }, // Sustain above normal
{ duration: "2m", target: 300 }, // Breaking point approaching
{ duration: "5m", target: 300 }, // Sustain high load
{ duration: "2m", target: 400 }, // Beyond capacity
{ duration: "5m", target: 400 }, // System under stress
{ duration: "5m", target: 0 }, // Gradual recovery
],
thresholds: {
http_req_duration: ["p(99)<1000"], // 99% under 1s during stress
http_req_failed: ["rate<0.05"], // Allow 5% error rate under stress
errors: ["rate<0.1"],
},
// ... (see reference guides for full implementation)
Reference Guides
Detailed implementations in the references/ directory:
| Guide | Contents |
|---|---|
| k6 Stress Testing | k6 Stress Testing |
| Spike Testing | Spike Testing |
| Soak/Endurance Testing | Soak/Endurance Testing |
| JMeter Stress Test | JMeter Stress Test |
| Auto-Scaling Validation | Auto-Scaling Validation |
| Breaking Point Analysis | Breaking Point Analysis |
Best Practices
✅ DO
- Test in production-like environment
- Monitor all system resources
- Gradually increase load to find limits
- Test recovery after stress
- Document breaking points
- Test auto-scaling behavior
- Plan for graceful degradation
- Monitor for memory leaks
❌ DON'T
- Test in production without safeguards
- Skip recovery testing
- Ignore warning signs (CPU, memory)
- Test only success scenarios
- Assume linear scalability
- Forget database capacity
- Skip monitoring third-party dependencies
- Test without proper cleanup
Discussion
Product Hunt–style comments (not star reviews)- No comments yet — start the thread.
Ratings
4.7★★★★★33 reviews- ★★★★★Anika Tandon· Dec 20, 2024
stress-testing has been reliable in day-to-day use. Documentation quality is above average for community skills.
- ★★★★★Ganesh Mohane· Dec 16, 2024
Useful defaults in stress-testing — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.
- ★★★★★Mateo Shah· Dec 16, 2024
Solid pick for teams standardizing on skills: stress-testing is focused, and the summary matches what you get after install.
- ★★★★★Diego Okafor· Dec 4, 2024
We added stress-testing from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.
- ★★★★★Naina Shah· Nov 23, 2024
Solid pick for teams standardizing on skills: stress-testing is focused, and the summary matches what you get after install.
- ★★★★★Yash Thakker· Nov 15, 2024
Registry listing for stress-testing matched our evaluation — installs cleanly and behaves as described in the markdown.
- ★★★★★Omar Tandon· Nov 11, 2024
stress-testing fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.
- ★★★★★Sakshi Patil· Nov 7, 2024
stress-testing is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.
- ★★★★★Omar Johnson· Nov 7, 2024
We added stress-testing from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.
- ★★★★★Chaitanya Patil· Oct 26, 2024
Keeps context tight: stress-testing is the kind of skill you can hand to a new teammate without a long onboarding doc.
showing 1-10 of 33