
Description
golang-benchmark is an agent skill from the samber cc-skills-golang collection for measuring Go performance: writing benchmarks, running them, profiling hot paths with pprof, and comparing results before and after a change. Its persona is a Go performance measurement engineer who never draws conclusions from a single run and treats statistical rigour and controlled conditions as prerequisites for any optimisation decision. The skill covers the full measurement workflow: write a benchmark, run it, profile the result, compare before and after statistically, and track regressions in continuous integration. It sets out file and naming conventions for benchmarks, such as putting the benchmarks for a source file in a matching benchmark test file. It uses benchstat, installed with go install golang.org/x/perf/cmd/benchstat@latest, to compare runs with statistical significance. The skill points to the golang-performance skill for optimisation patterns to apply after measuring, and to the golang-troubleshooting skill for setting up pprof on a running service. It is useful for developers who want evidence that a change made Go code faster before they commit it, and who want regressions caught in CI. It is listed on skills.sh, where the page shows install counts and GitHub stars for the collection, and its security audits all pass. Install it with npx skills add https://github.com/samber/cc-skills-golang --skill golang-benchmark.…
Highlights
- Benchmark writing conventions
- Running and comparing benchmarks
- pprof profiling of hot paths
- benchstat statistical comparison
- Regression tracking in CI
- Installs from skills.sh
Ratings & Reviews
No ratings yet
Be the first to rate golang-benchmark.
People also visit

go-concurrency-patterns
Master Go concurrency with goroutines, channels, sync primitives, and context
golang-benchmark FAQ
What does this skill cover?
Measuring Go performance: writing and running benchmarks, profiling with pprof, and comparing before and after with statistics.
Why not trust one run?
The skill says never to draw conclusions from a single benchmark run.
What tool compares results?
benchstat, installed with go install golang.org/x/perf/cmd/benchstat@latest.
How do I install it?
Run npx skills add https://github.com/samber/cc-skills-golang --skill golang-benchmark.
What are the security audit results?
skills.sh lists three audits: Gen Agent Trust Hub Pass, Socket Pass and Snyk Pass.
How popular is it?
The page shows about 37.8K installs, and the cc-skills-golang repository has 3.5K GitHub stars.
What are the best golang-benchmark alternatives?
Popular alternatives to golang-benchmark include golang-performance, go-concurrency-patterns and python-performance-optimization. See all golang-benchmark alternatives
