go-testing-benchmarks

Create Go benchmarks with b.N loops, sub-benchmarks, and timing control.

3|Updated Nov 28, 2025
Search Tags:#testing#benchmark
One-click install
npx skills add https://github.com/JamesPrial/claudefiles --skill go-testing-benchmarks
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: go-testing-benchmarks
Source: https://github.com/JamesPrial/claudefiles/tree/main/skills/golang/testing/benchmarks
Command: npx skills add https://github.com/JamesPrial/claudefiles --skill go-testing-benchmarks

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill demonstrates how to create stable benchmarks with b.N, sub-benchmarks, and timing control.

Core Features & Use Cases

  • Benchmark Loops: Proper usage of b.N in loops.
  • Sub-benchmarks: Group comparisons with b.Run.
  • Performance Tips: Use b.ResetTimer and capture allocations.

Quick Start

Add a basic benchmark for a function and run go test -bench=.