Skip to main content

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:
  1. Define Clear Metrics
    • Response times
    • Throughput
    • Resource usage
    • Error rates
  2. Plan Test Data
    • Data volume
    • Data variety
    • Data distribution
    • Data cleanup
  3. Monitor Resources
    • CPU usage
    • Memory usage
    • Network usage
    • Disk I/O
  4. Document Results
    • Test conditions
    • Test results
    • Analysis
    • Recommendations

Tips for Better Results

  1. Start with Baseline
    • Measure current performance
    • Document normal behavior
    • Set performance targets
  2. Use Appropriate Tools
    • Load testing tools
    • Monitoring tools
    • Analysis tools
    • Reporting tools
  3. Plan Test Environment
    • Hardware requirements
    • Network setup
    • Test data
    • Monitoring setup
  4. Analyze Results
    • Performance metrics
    • Bottlenecks
    • Optimization opportunities
    • Recommendations

Common Pitfalls to Avoid

  1. Incomplete Metrics
    • ❌ “Test system performance”
    • ✅ “Test system performance with response time < 2s, throughput > 100 TPS”
  2. Poor Test Data
    • ❌ “Use test data”
    • ✅ “Use production-like data with 100,000 user profiles and 1M transactions”
  3. Missing Monitoring
    • ❌ “Run performance tests”
    • ✅ “Run performance tests with CPU, memory, network, and database monitoring”
  4. Unclear Criteria
    • ❌ “Test until it breaks”
    • ✅ “Test until response time exceeds 5s or error rate exceeds 1%“

Example Output Structure