一键导入
performance-testing
Master performance testing with load testing, stress testing, JMeter, k6, and performance benchmarking.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Master performance testing with load testing, stress testing, JMeter, k6, and performance benchmarking.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Master business documentation including BRD, FRD, specifications, and technical documentation for clear communication and requirements management.
Master process modeling with BPMN, flowcharts, swimlane diagrams, and process optimization techniques for business process improvement.
Master requirements gathering techniques including interviews, workshops, observation, and documentation for effective requirement elicitation.
Master use case development with actors, scenarios, preconditions, postconditions, and detailed specifications for comprehensive requirements.
Master data visualization with chart selection, dashboard design, Tableau, Power BI, and effective data storytelling.
Master Excel for data analysis with pivot tables, formulas, Power Query, and advanced Excel techniques.
| name | performance-testing |
| description | Master performance testing with load testing, stress testing, JMeter, k6, and performance benchmarking. |
Conduct performance testing to ensure applications meet scalability, responsiveness, and stability requirements under load.
// load-test.js
import http from 'k6/http';
import { check, sleep } from 'k6';
export const options = {
stages: [
{ duration: '2m', target: 100 }, // Ramp up to 100 users
{ duration: '5m', target: 100 }, // Stay at 100 users
{ duration: '2m', target: 200 }, // Ramp up to 200 users
{ duration: '5m', target: 200 }, // Stay at 200 users
{ duration: '2m', target: 0 }, // Ramp down to 0
],
thresholds: {
http_req_duration: ['p(95)<500'], // 95% requests < 500ms
http_req_failed: ['rate<0.01'], // Error rate < 1%
},
};
export default function () {
const res = http.get('https://api.example.com/products');
check(res, {
'status is 200': (r) => r.status === 200,
'response time < 500ms': (r) => r.timings.duration < 500,
});
sleep(1);
}
# Performance Test Report
**Test Date**: 2024-01-15
**Application**: E-Commerce API
**Tool**: k6
## Test Configuration
- Virtual Users: 100 → 200
- Duration: 16 minutes
- Ramp-up: 2 minutes per stage
## Results Summary
| Metric | Target | Actual | Status |
|--------|--------|--------|--------|
| Avg Response Time | <300ms | 245ms | ✅ Pass |
| P95 Response Time | <500ms | 412ms | ✅ Pass |
| P99 Response Time | <1000ms | 876ms | ✅ Pass |
| Throughput | >100 req/s | 125 req/s | ✅ Pass |
| Error Rate | <1% | 0.3% | ✅ Pass |
## Bottlenecks Identified
1. Database queries slow at 200+ users
2. Image processing CPU-intensive
## Recommendations
1. Add database indexing on product_id
2. Implement CDN for images
3. Add caching layer (Redis)