benchmark

Automate Go benchmark execution and parse benchstat outputs into structured results.

1|Updated Mar 23, 2026
One-click install
npx skills add https://github.com/RaNDoM6913/claude-code-superkit --skill benchmark-random6913
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: benchmark
Source: https://github.com/RaNDoM6913/claude-code-superkit/tree/main/packages/codex/skills/benchmark
Command: npx skills add https://github.com/RaNDoM6913/claude-code-superkit --skill benchmark-random6913

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automates Go benchmark execution and result analysis.

Core Features & Use Cases

  • Go benchmarks with statistical analysis and optional cross-branch comparison.
  • Structured outputs: parse benchstat results into a readable format for dashboards and reports.
  • Use Case: Compare performance across branches to ensure refactors do not regress critical paths.

Quick Start

Run all benchmarks in the current module and review the results.

Frequently Asked Questions about benchmark

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run Go benchmarks and compare performance across git branches?

Go benchmarking with cross-branch comparison is done by running `go test -bench` with the `--compare` flag. It parses benchstat outputs into a structured format to verify refactors do not regress critical paths.

What is the best way to automate Go benchmark execution and result analysis?

Automating Go benchmark execution is best handled by running package-level benchmarks on projects with a go.mod file. It applies `go test -bench`, `-benchmem`, and optional `--compare` flags, parsing benchstat results into a readable format for reports.

Does this benchmarking approach require a specific Go project structure?

Yes, this benchmarking approach requires a Go project structure containing a go.mod file. It enables package-level benchmarking by applying `go test -bench` and `-benchmem` commands within the current module to measure performance accurately.

How do I get structured benchstat outputs for dashboards and reports?

To get structured benchstat outputs for dashboards, you run Go benchmarks with memory allocation profiling using `-benchmem`. The tool parses the benchstat results into a readable structured format suitable for automated reporting.

Can I measure memory allocations during Go benchmarking?

Yes, you can measure memory allocations during Go benchmarking by applying the `-benchmem` flag. It executes package-level benchmarks on your go.mod project and includes memory statistics in the parsed benchstat output.

When do I need cross-branch benchmark comparisons in Go?

You need cross-branch benchmark comparisons in Go when ensuring code refactors do not introduce performance regressions. By applying the `--compare` flag, the tool runs benchmarks across branches and parses the benchstat delta outputs into structured results.