Document performance best practices and optimization techniques
Create a performance optimization guide for:
**Application Type:** {{APP_TYPE}}
**Tech Stack:** {{TECH_STACK}}
**Performance Goals:** {{GOALS}}
**Current Issues:**
{{ISSUES}}
Generate comprehensive performance documentation:
# Performance Optimization Guide
## Performance Goals
| Metric | Target | Current |
|--------|--------|---------|
| Page Load Time | < 3s | |
| Time to Interactive | < 5s | |
| API Response Time | < 200ms | |
| Throughput | X req/s | |
## Measurement
### Tools
- Tool 1: Purpose
- Tool 2: Purpose
### Key Metrics
| Metric | How to Measure | Target |
|--------|----------------|--------|
## Optimization Techniques
### Category 1: [e.g., Frontend]
#### Technique 1: [Name]
**Impact:** High/Medium/Low
**Effort:** High/Medium/Low
**Problem:**
What issue this addresses
**Solution:**
```javascript
// Before (slow)
// After (optimized)
```
**Expected Improvement:**
Quantified benefit
---
### Category 2: [e.g., Backend]
#### Database Optimization
- Query optimization
- Indexing strategies
- Connection pooling
#### Caching
- What to cache
- Cache invalidation
- Cache layers
#### API Optimization
- Pagination
- Field selection
- Compression
### Category 3: [e.g., Infrastructure]
#### Scaling
- Horizontal scaling
- Load balancing
- Auto-scaling policies
## Anti-Patterns
| Anti-Pattern | Problem | Solution |
|--------------|---------|----------|
## Performance Testing
- Load testing approach
- Benchmarking process
- Regression testing
## Monitoring
- Performance dashboards
- Alerting thresholds
## Checklist
Pre-deployment performance checklistOr press ⌘C to copy
Replace these placeholders with your own content before using the prompt.
[{APP_TYPE][{TECH_STACK][{GOALS][{ISSUES]