programming/golang-performance/SKILL.md
Go performance workflow: benchmark and profile (pprof/trace), identify hotspots, reduce allocations/GC and contention, and verify improvements with repeatable measurement. Use only after you have evidence the Go code is the bottleneck.
npx skillsauth add aeondave/malskill golang-performanceInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
This skill is about measurement-first optimization in Go.
Use this skill when you need to:
If you need general idioms and patterns (not measurement), use golang-patterns.
Make it measurable
Capture evidence
Analyze before changing code
top, top -cum)list)Apply targeted fixes
Verify and document
net/http/pprof endpoints can leak sensitive runtime data. Prefer:
localhostLoad these references on demand:
references/profiling.md — pprof + trace collection and analysis commandsreferences/benchmarks.md — stable benchmarks, -benchmem, benchstat, hygienereferences/allocations-gc.md — allocation patterns, slice retention, sync.Pool guidancereferences/contention.md — mutex/block profiles, contention patterns, backpressuredevelopment
Auth/lab ref: Unicorn Engine CPU-only emulation for shellcode, decryptors, custom VM handlers, instruction tracing, memory hooks, and register-level experiments.
development
Auth/lab ref: Renode board and SoC simulation for MCU/RTOS firmware, UART/GPIO/peripheral modeling, GDB remote debugging, REPL platforms, and RESC scripts.
development
Auth/lab ref: Qiling OS-layer binary emulation for PE/ELF/Mach-O/UEFI/shellcode with rootfs, syscall/API hooks, filesystem mapping, and runtime patching.
databases
Auth/lab ref: QEMU user-mode and full-system emulation for cross-arch binaries, firmware, kernels, disks, serial consoles, networking, and GDB stubs.