Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Design, run, compare, and interpret Go performance evidence using benchmarks, B.Loop, benchstat, pprof, traces, escape analysis, cache locality, false sharing, sync.Pool, GC limits, container CPU behavior, and PGO. Use when investigating Go latency, throughput, CPU, memory, allocations, contention, runtime behavior, performance regressions, or optimization claims.
.claude/skills/hashgraph-online-go-performance-testing/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | -4% | 0% |
| case-02 | ✗→✓ | ▲ Improved | -8% | 0% |
| case-07 | ✗→✓ | ▲ Improved | -10% | 0% |
| case-12 | ✗→✓ | ▲ Improved | -28% | 0% |
| case-04 | ✓→✓ | = Same ✓ | -1% | 0% |
Optimize only after establishing a representative, repeatable measurement and a specific hypothesis.
| Task | Load | |---|---| | Benchmark a function or package | guidelines.md, workflows/benchmark-code.md | | Investigate a regression | workflows/investigate-performance.md | | Evaluate profile-guided optimization | workflows/evaluate-pgo.md | | Choose benchmark and profile controls | references/performance-testing/rules.md | | Interpret metrics and profiles | references/performance-testing/knowledge.md | | Review benchmark patterns | references/performance-testing/examples.md |
B.Loop only when the pinned Go version supports it.sync.Pool as a cache or resource owner.Guidance is transformed and paraphrased from Inanc Gumus, Go by Example: Programmer's Guide to Idiomatic and Testable Programs (Manning, 2025), especially Chapter 3. Examples are original.
Diagnostics, locality, allocation, GC, and container guidance also incorporates transformed material from Teiva Harsanyi, 100 Go Mistakes and How to Avoid Them (Manning, 2022), Chapter 12.
Book: https://www.manning.com/books/go-by-example
Verify current behavior against https://pkg.go.dev/testing, https://go.dev/doc/diagnostics, and https://go.dev/doc/pgo.
Other measured skills in the registry, with their headline benchmark lift.