What problem does it solve?
Go performance analysis often suffers from biased or inconsistent measurement. This skill provides a rigorous framework to design, run, and interpret benchmarks to quantify performance changes accurately.
Core Features & Use Cases
- Benchmark design & execution: design benchmarks that minimize setup noise and use b.Loop (Go 1.24+) to ensure reliable timing.
- Profiling & analysis: integrate CPU, memory, and trace profiling (pprof, benchstat) to understand performance characteristics and bottlenecks.
- CI regression & trend tracking: compare runs across commits with benchstat/benchdiff to guard against regressions.
- Cross-skill integration: ties into golang-performance and golang-troubleshooting for end-to-end optimization.
Quick Start
Run a baseline benchmark, capture results, and compare against the target version using benchstat/benchdiff for statistical validation.