Lightlines
By cxuu

go-performance

cxuu1.2k installs

Faster Go code, backed by before-and-after benchmarks.

What it does

Guides improvements to Go hot paths and validates their performance gains with benchmarks.

When to use it

Use when optimizing Go code, investigating slowness, writing performance-critical sections, or answering questions about string concatenation and benchmarking.

How to use it

It changes how the agent optimizes Go code by focusing performance patterns on hot paths and retaining only measurable improvements.

What you provide

  • An existing project

Latest review

What you need · 2

Requires Go for the benchmarks; b.Loop() examples need Go 1.24 or newer, while older versions use b.N loops.

Enables optional statistical comparison when a saved benchmark baseline is supplied.


Access · 2

This skill

benchstat

Execute

Installs benchstat for benchmark comparisons

${TMPDIR:-/tmp}/bench-XXXXXX.txt

Write

Creates temporary benchmark output files