← ClaudeAtlas

benchmark-checklistlisted

Checklist for performance benchmarking and optimization. Enforces baseline measurement, controlled environment, one variable at a time, and explain-the-number rigor.
naviocean/sass-kit · ★ 1 · Testing & QA · score 62
Install: claude install-skill naviocean/sass-kit
# Benchmark Checklist & Performance Protocol Use this skill when investigating slow queries, optimizing throughput, reducing latency, or claiming performance improvements. It prevents premature optimization and invalid benchmarking. ## 1. The Cardinal Rule: No Optimization Without a Baseline > [!CAUTION] > Never optimize code based on intuition or theoretical speedups. > Every performance claim must be accompanied by a measured baseline and a post-fix measurement conducted under strictly identical conditions. --- ## 2. Pre-Benchmark Checklist Before collecting numbers: - [ ] **Production-Grade Build:** Ensure code is compiled in release/production mode (e.g. `NODE_ENV=production`, `cargo build --release`, `go build`). Never benchmark with dev servers, debuggers, or hot-reloaders attached. - [ ] **Warmup Cycles:** Execute sufficient warmup iterations (1,000–5,000 runs) to allow JIT compilers (V8) and database query planners to stabilize. - [ ] **Isolated Environment:** Close background CPU-heavy applications; benchmark in a stable container or dedicated VM if possible. - [ ] **Statistical Distribution:** Report **p50, p95, and p99** percentiles, not just a simple arithmetic average that masks tail latency spikes. --- ## 3. Scientific Iteration Loop 1. **Step 1 — Baseline:** Measure current performance over $N$ runs. Record exact commands and machine specifications. 2. **Step 2 — Hypothesis & Profiling:** Use CPU profiler or heap snapshot to locate the actual hotspot.