Lightlines
By samber

golang-performance

samber38.4k installs

Make slow Go code measurably faster.

What it does

Applies measured optimization patterns to fix profiled Go bottlenecks and review code for performance gains.

When to use it

Use after profiling or benchmarks identify a bottleneck, or when reviewing code for performance improvements.

How to use it

Give it a Go project for performance review or optimization; it applies and documents measured performance improvements in the project.

What you provide

  • An existing project

Good to know

  • starts 3 helper agents
  • starts 1 helper agents
  • starts one helper agent per item, so the count depends on the work

Security reviews

Not yet reviewed.


What you need · 2

Requires the go command.

Requires benchstat for benchmark comparison.


Access · 2

This skill

golang.org/x/perf/cmd/benchstat@latest

Execute

Installs the latest benchstat

/tmp/report-*.txt

Write

Saves benchmark audit files