--- name: performance description: "Performance work: optimization for frontend, backend, and database, and the baseline measurement framework that proves a change helped. Use when the user asks to speed up, profile, or benchmark code; load references/baseline.md before optimizing and references/optimization.md when choosing changes." --- # Performance | File | Load when | |------|-----------| | `references/baseline.md` | Measuring performance: establish a baseline, pick metrics for the project type, validate a change | | `references/optimization.md` | Choosing what to change: rendering, assets, network, JavaScript, backend, database | Measure first with `references/baseline.md`, then change code guided by `references/optimization.md`, then re-measure against the baseline.