Catalogue / performance-regression-debugging
performance-regression-debugging
MITSignedIdentify and debug performance regressions from code changes. Use comparison and profiling to locate what degraded performance and restore baseline metrics.--- name: performance-regression-debugging description: > Identify and debug performance regressions from code changes. Use comparison and profiling to locate what degraded performance and restore baseline metrics. ---
Performance Regression Debugging
Table of Contents
- Overview
- When to Use
- Quick Start
- Reference Guides
- Best Practices
Overview
Performance regressions occur when code changes degrade application performance. Detection and quick resolution are critical.
When to Use
- After deployment performance degrades
- Metrics show negative trend
- User complaints about slowness
- A/B testing shows variance
- Regular performance monitoring
Quick Start
Minimal working example:
// Before: 500ms response time
// After: 1000ms response time (2x slower = regression)
// Capture baseline metrics
const baseline = {
responseTime: 500, // ms
timeToInteractive: 2000, // ms
largestContentfulPaint: 1500, // ms
memoryUsage: 50, // MB
bundleSize: 150, // KB gzipped
};
// Monitor after change
const current = {
responseTime: 1000,
timeToInteractive: 4000,
largestContentfulPaint: 3000,
memoryUsage: 150,
bundleSize: 200,
};
// Calculate regression
const regressions = {};
for (let metric in baseline) {
const change = (current[metric] - baseline[metric]) / baseline[metric];
// ... (see reference guides for full implementation)Reference Guides
Detailed implementations in the references/ directory:
| Guide | Contents | |---|---| | Detection & Measurement | Detection & Measurement | | Root Cause Identification | Root Cause Identification | | Fixing & Verification | Fixing & Verification | | Prevention Measures | Prevention Measures |
Best Practices
✅ DO
- Follow established patterns and conventions
- Write clean, maintainable code
- Add appropriate documentation
- Test thoroughly before deploying
❌ DON'T
- Skip testing or validation
- Ignore error handling
- Hard-code configuration values
| File | Size | SHA-256 |
|---|---|---|
| SKILL.md | 2.3 kB | eb13feb088cf |
| SKILVAULT_SOURCE.json | 1.8 kB | a6d4b2bc6d8d |
| THIRD_PARTY_NOTICES.md | 1.1 kB | ad2a48bad631 |
| references/detection-measurement.md | 1.1 kB | 8a80bfd2ac5f |
| references/fixing-verification.md | 668 B | 1ebc40df90f0 |
| references/prevention-measures.md | 884 B | 91b4d8ebca29 |
| references/root-cause-identification.md | 1.6 kB | 561d5dc6dd8f |
| scripts/scaffold-tests.sh | 574 B | 34e38c648eb2 |
| templates/test-template.js | 541 B | b515bc4dd35d |
Published verbatim from the pinned commit. Nothing is rewritten.
| Version | Pinned commit | Signed | |
|---|---|---|---|
| 0.1.0 Current | 3f5182cfd739 | 20 Nov 2026 |
Locking a skill to one version needs Pro.