Performance Testing Prompts
This section provides prompts designed to help you create effective performance test scenarios using AI. These prompts ensure thorough testing of system performance under various conditions.Basic Performance Test Generation
Prompt Template
Example Usage
Advanced Performance Testing
Load Testing Scenarios
Stress Testing Scenarios
Best Practices
When using these prompts:-
Define Clear Metrics
- Response times
- Throughput
- Resource usage
- Error rates
-
Plan Test Data
- Data volume
- Data variety
- Data distribution
- Data cleanup
-
Monitor Resources
- CPU usage
- Memory usage
- Network usage
- Disk I/O
-
Document Results
- Test conditions
- Test results
- Analysis
- Recommendations
Tips for Better Results
-
Start with Baseline
- Measure current performance
- Document normal behavior
- Set performance targets
-
Use Appropriate Tools
- Load testing tools
- Monitoring tools
- Analysis tools
- Reporting tools
-
Plan Test Environment
- Hardware requirements
- Network setup
- Test data
- Monitoring setup
-
Analyze Results
- Performance metrics
- Bottlenecks
- Optimization opportunities
- Recommendations
Common Pitfalls to Avoid
-
Incomplete Metrics
- ❌ “Test system performance”
- ✅ “Test system performance with response time < 2s, throughput > 100 TPS”
-
Poor Test Data
- ❌ “Use test data”
- ✅ “Use production-like data with 100,000 user profiles and 1M transactions”
-
Missing Monitoring
- ❌ “Run performance tests”
- ✅ “Run performance tests with CPU, memory, network, and database monitoring”
-
Unclear Criteria
- ❌ “Test until it breaks”
- ✅ “Test until response time exceeds 5s or error rate exceeds 1%“