stress-testing by aj-geddes/useful-ai-prompts
npx skills add https://github.com/aj-geddes/useful-ai-prompts --skill stress-testing压力测试将系统推至超出正常操作容量的状态,以识别其崩溃点、故障模式和恢复行为。它验证系统在极端条件下的稳定性,并有助于确定在性能下降或故障发生前的最大容量。
最小工作示例:
// 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)
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
references/ 目录下的详细实现:
每周安装量
113
代码仓库
GitHub 星标数
116
首次出现
2026年1月21日
安全审计
安装于
opencode94
gemini-cli93
codex91
claude-code88
cursor82
github-copilot78
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.
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)
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 |
Weekly Installs
113
Repository
GitHub Stars
116
First Seen
Jan 21, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
opencode94
gemini-cli93
codex91
claude-code88
cursor82
github-copilot78
Azure 升级评估与自动化工具 - 轻松迁移 Functions 计划、托管层级和 SKU
94,100 周安装
前端设计技能:告别AI垃圾美学,打造独特、生产级、视觉冲击力强的创意界面
23,300 周安装
主题工厂技能 - 10个专业PPT主题模板,一键应用字体配色方案
23,300 周安装
AI文档协同创作工作流 | 结构化协作文档编写指南 | 背景收集、精炼、读者测试
23,400 周安装
shadcn/ui 组件集成指南:可自定义的 React UI 组件库,基于 Tailwind CSS 和 Radix UI
23,800 周安装
Web Artifacts Builder - 构建前端Claude.ai工件的React + TypeScript + Vite工具
25,400 周安装
算法艺术生成器 - 创建p5.js生成艺术与算法哲学 | 计算美学与交互式艺术
25,600 周安装