profiling-guide
Installation
SKILL.md
Performance Profiling Guide
Profiling Methodology
1. Define the goal:
- What is slow? (specific endpoint, operation, user workflow)
- How slow is it? (current measurement)
- How fast should it be? (target)
2. Measure first:
- Profile BEFORE optimizing (avoid optimizing the wrong thing)
- Measure end-to-end, then narrow down
- Use realistic data and load patterns
3. Identify the bottleneck:
- Is it CPU-bound? (computation, parsing, serialization)
- Is it I/O-bound? (disk, network, database)
- Is it memory-bound? (allocation pressure, GC pauses, swapping)