In short.
golang-benchmark is an assistant skill for Go developers investigating performance, but its detailed guidance includes conflicting operational advice and no demonstrated evaluation results. Its declared version 1.3.2 connects benchmark construction, repeated measurements, benchstat comparisons, pprof analysis, execution tracing and CI regression tools. The documentation offers a useful measurement checklist, especially its emphasis on controlled comparisons and serial benchmark execution. Its 81 evaluation scenarios contain expected assertions without recorded outcomes, so assistant accuracy, host compatibility and performance benefits remain unassessed.
Researched and written by an AI model and checked by a second AI model. How it works
The selected scope is skills/golang-benchmark at revision d68d80aec298e1b74b37c2a472c002b5217248b3: SKILL.md, evals/evals.json and eight references covering benchstat, CI regression detection, compiler analysis, investigation sessions, pprof, Prometheus Go metrics, diagnostic tools and execution traces. The repository-root LICENSE is the related notice outside that folder. Sibling skills, dependency implementations, external documentation and later repository changes are excluded. The selected documents support analysis of their instructions and examples; installation, host compatibility, command correctness, evaluation outcomes and performance effects were not tested.
The overview
Identity
golang-benchmark is a collection of instructions and reference documents that a coding assistant loads when working on Go performance. It belongs to samber/cc-skills-golang, identifies its author as samber and declares version 1.3.2. It is marked user-invocable and describes compatibility with Claude Code, Codex and similar assistant hosts.
The resource's original location is [https://github.com/samber/cc-skills-golang/tree/main/skills/golang-benchmark]. The supplied material identifies the specific source revision as d68d80aec298e1b74b37c2a472c002b5217248b3.
Assessment
The strongest feature is the connection between a performance question and a measurement method. The skill explains how to construct a benchmark, collect repeated samples, inspect CPU or memory costs, compare a change and preserve relevant results. This can help developers avoid accepting a faster-looking number without considering noise.
Adoption makes sense as supervised guidance for a concrete Go investigation. Confidence is limited by documentation inconsistencies and the absence of execution results. The evaluation scenarios describe desired assistant answers; they do not demonstrate that an assistant follows the guidance correctly.
Users
The intended users are Go developers asking an assistant to write benchmarks, investigate slow functions, explain allocations or compare implementations. Beginners get explanations of time per operation, allocation counts and profile types, although the examples assume familiarity with Go packages and command-line tools.
Experienced developers get more detailed material on compiler escape decisions, cumulative profile costs, benchmark grouping, trace annotations and CI comparisons. Service operators also get investigation guidance involving Prometheus and profiling, which requires knowledge of their application's instrumentation and deployment setup.
Capabilities
Benchmark guidance includes setup placement, b.Loop(), legacy b.N loops, allocation reporting, custom metrics and table-driven sub-benchmarks. The benchstat reference covers repeated samples, confidence intervals, comparison output, filtering, table layout and comparisons across several versions.
Profiling material covers CPU, heap, goroutine, mutex and blocking profiles, including the distinction between cumulative allocations and live memory. Execution tracing adds scheduling and waiting timelines, application annotations and flight recorder examples. Compiler diagnostics cover escape analysis, inlining, intermediate representation and assembly.
Additional references describe benchdiff, cob and gobenchdata for CI work; Go runtime metrics exposed through Prometheus; and diagnostic tools including fgprof, fieldalignment and runtime logging. These are documented workflows, with no supplied results establishing their effectiveness in a particular project.
Using it
Requirements
The declared command dependencies are Go and benchstat, alongside an assistant host that can load the skill. Meaningful measurements also require a Go project, representative benchmark inputs and sufficiently controlled hardware conditions.
The documentation recommends b.Loop() for Go 1.24 and later while retaining legacy loops for older projects. Its flight recorder examples are labeled Go 1.25 and later. Optional workflows require additional components, such as Graphviz for profile graphs, a Prometheus collector for metrics or separate CI benchmark tools. These compatibility claims were not tested.
Mechanism
SKILL.md supplies the assistant's measurement instructions and links to eight specialized references. Its metadata describes Go file matching and requests access to file operations, Go and Git commands, benchmark tools, web retrieval, agents and worktrees. Actual permission enforcement depends on the assistant host and was not assessed.
The central process is to establish a baseline, investigate the expensive work, make a bounded change and compare measurements under matching conditions. Competing implementations may be prepared in separate worktrees, but the skill explicitly calls for running their benchmarks one at a time against the same baseline.
Setup
Obtain the selected skill folder from the identified revision and preserve its references directory so relative links remain usable. Load it through the chosen assistant host's skill mechanism. The supplied folder does not provide host-specific installation commands for the skill itself.
The documented benchstat installation command is go install golang.org/x/perf/cmd/benchstat@latest. This selects a moving dependency version; an explicit version should be recorded for reproducible work. Additional tools are needed only for the workflows that use them.
Production profiling examples assume the application already supports the relevant endpoints or environment-variable switches. The skill points to a separate troubleshooting skill for secure endpoint setup, whose contents are outside this resource.
Example
For a project that already contains BenchmarkParse in ./pkg/parser, the benchstat reference supplies this baseline recipe: go test -run='^$' -bench=BenchmarkParse -benchmem -count=10 ./pkg/parser | tee old.txt. The flags skip ordinary tests, report allocations and collect ten samples.
After the implementation change, the documented process repeats the command into new.txt and compares the files with benchstat old.txt new.txt. Baseline and candidate measurements should use the same toolchain, machine and flags, with benchmark processes running serially. The reference also describes alternating baseline and candidate runs to reduce drift over time.
The intended result is a comparison of time and allocation metrics with uncertainty information. A difference marked with ~ should not be presented as an established improvement. No commands were executed and no performance result is established by this example.
Assessment & evidence
Limitations
The CI reference opens by restricting its tools to CI, yet its selection table describes benchdiff as suitable for local development and CI. The benchstat reference also includes local measurement advice. This leaves the intended boundary between local investigation and CI gating inconsistent.
The production investigation prose calls for targeting one instance, while its Kubernetes examples address deployment/my-service. It does not show how to isolate one replica or implement the named debug switches. Those examples require application-specific interpretation.
Version-sensitive statements about Go 1.26 inlining and Go 1.27 allocator behavior have no supporting release notes in the supplied files. Fixed sample counts, regression thresholds, monitoring cutoffs and overhead percentages are documented recommendations, with no supplied measurements making them guarantees for a user's workload.
The CI reference warns that cob uses git reset and can lose uncommitted changes; it also says failed benchmarks can cause its gating to be skipped. These operational caveats matter when choosing a regression tool.
Reasoning
The resource's practical value comes from encouraging developers to ask what a measurement represents. Its distinctions between CPU work and waiting, cumulative allocations and live memory, and self cost and cumulative cost help frame an investigation before changing code.
Its warnings against concurrent benchmark processes and repeatedly rerunning until a favorable result appears address concrete ways comparisons become misleading. A prescribed sample count is still only a starting recipe: confidence depends on the actual variation and the workload represented by the benchmark.
Alternatives
Developers can use the documented Go benchmark, pprof, trace and benchstat commands directly without loading an assistant skill. This keeps interpretation with the developer while using the same underlying measurement tools.
Within the documented options, benchdiff targets comparisons between Git revisions, gobenchdata adds historical dashboards, and cob offers simpler threshold gating with the stated reset and noise caveats. These tools address different parts of the workflow and were not independently compared.
The repository points to sibling skills for optimization patterns, troubleshooting and ongoing observability. Their contents and suitability are unknown within the supplied scope.
Evidence
The source material consists of SKILL.md, eight reference documents, evals/evals.json and the repository LICENSE. The immutable main instruction file is available at [https://raw.githubusercontent.com/samber/cc-skills-golang/d68d80aec298e1b74b37c2a472c002b5217248b3/skills/golang-benchmark/SKILL.md].
The evaluation file contains 81 scenarios with prompts, anticipated mistakes and expected assertions. It includes no model outputs, scored results, pass rates or evaluation-run details. Its expectations therefore describe intended behavior without demonstrating achieved behavior.
The references contain command recipes and illustrative output. No installation, benchmark, profiling session, CI integration or assistant evaluation was executed, so operational behavior and measured benefits remain unassessed.
Access & freshness
Costs
The material provides no purchase price, assistant subscription or model usage charges, CI runner pricing, or storage pricing. Total cost is unknown. The MIT license establishes usage rights without establishing the cost of operating the surrounding tools.
Repeated benchmarks consume machine time. Profiling, traces and continuous collection can add CPU, memory and storage demands. The references give approximate overhead and data-volume figures, but supply no measurements validating those estimates for a particular workload.
Rights
SKILL.md declares MIT licensing, and the repository LICENSE names Samuel Berthe with a 2026 copyright notice. The license permits use, copying, modification, publication, distribution, sublicensing and sale, provided the copyright and permission notices accompany copies or substantial portions.
The software and associated documentation are provided without warranty. Redistributing the selected folder should preserve the supplied LICENSE notice. Licenses for separately installed tools and external services are not established by this repository notice.
Freshness
The supplied snapshot is identified as captured on 15 November 2026 at revision d68d80aec298e1b74b37c2a472c002b5217248b3; SKILL.md declares version 1.3.2. These details identify the documented source, while subsequent changes on main and the latest available release are unknown.
Several dependency installation commands use @latest, and the CI example requests the stable Go toolchain. Those choices can change independently of the skill. Record resolved versions and recheck version-dependent guidance before comparing measurements.
Actions
Start with one representative benchmark and a bounded question, such as whether a parser change reduces allocations. Preserve the skill's source revision, record the Go and benchmark-tool versions, and inspect baseline variation before interpreting a comparison.
Keep competing benchmark processes serial, retain the raw baseline and candidate output, and review both statistical uncertainty and the practical size of any change. Use the relevant profile or trace reference when the numbers need explanation.
Before adopting production or CI recipes, resolve the local-versus-CI guidance, confirm the exact deployment target and debug-toggle implementation, and account for cob's documented behavior. Treat the evaluation file as a specification for future evaluation; it supplies no established success rate.
