perf-test
Installation
SKILL.md
Performance Test
Set up, run, and analyze performance tests with an iterative improvement cycle.
Usage
/perf-test src/utils/parser.ts # Profile a file/module
/perf-test calculateTotal # Profile a specific function
/perf-test /api/users # Load test an endpoint
/perf-test checkout-flow # E2E scenario test
/perf-test # Ask what to test
Gotchas
- First runs include JIT/cold-start overhead. Always configure warmup passes in the proposal — without them, baseline measurements are inflated and improvement percentages are misleading.
- Before/after comparisons are invalid if run on different machines, different concurrency levels, or with different iteration counts. Lock test configuration between runs.