golang-benchmark

golang benchmark

samber ↓ 33k
Claude Code
View source ↗

What it does

  • benchstat: go install golang.org/x/perf/cmd/benchstat@latest
  • Only include benchmarks directly affected by the change — strip unrelated rows
  • Never paste results with ~ (no statistical significance) — the improvement cannot be claimed
  • Include the hardware context line (goos/goarch/cpu) so results are reproducible
  • Use perf(scope): commit type for performance-only changes
  • → See samber/cc-skills-golang@golang-performance skill for optimization patterns to apply after measuring ("if X bottleneck, apply Y")
  • → See samber/cc-skills-golang@golang-testing skill for general testing practices

Derived from the skill's own SKILL.md documentation · extracted 2026-07-23

golang benchmark

Source

Repository: https://github.com/samber/cc-skills-golang

golang-benchmark FAQ

What does the golang-benchmark skill do?

Golang benchmarking, profiling, and performance measurement. Use when writing, running, or comparing Go benchmarks, profiling hot paths with pprof, interpreting CPU/memory/trace profiles, analyzing results with benchstat, setting up CI benchmark regression detection, or investigating production performance with Prometheus runtime metrics. Also use when the developer needs deep analysis on a specific performance indicator - this skill provides the measurement methodology, while `samber/cc-skills-golang@golang-performance` provides the optimization patterns. benchstat: go install golang.org/x/perf/cmd/benchstat@latest Only include benchmarks directly affected by the change — strip unrelated rows

How do I install golang-benchmark?

Run: npx -y skills add https://github.com/samber/cc-skills-golang --skill golang-benchmark --agent claude-code — the source lives at github.com/samber/cc-skills-golang.

Maintain golang-benchmark?

Let people know it's listed here — add the badge (live metrics, light/dark aware) or a plain link to your README or docs.

golang-benchmark on getagentictools
[![golang-benchmark on getagentictools](https://getagentictools.com/badge/skills/samber-cc-skills-golang-golang-benchmark.svg)](https://getagentictools.com/skills/samber-cc-skills-golang-golang-benchmark?ref=badge)
npx agentictools info skills/samber-cc-skills-golang-golang-benchmark

The second line is the CLI lookup for this page — handy in READMEs and docs.