dgryski/go-perfbook
dgryski/go-perfbook has 10,895 GitHub stars and 599 forks. GitHot measured 0 stars in 24 hours. Last checked 2026-11-08 15:48 UTC. Last push 2022-01-05.
Thoughts on Go performance optimization
Measured star growth
- in 24h
- 0
- in 7 days
- Update delayed
- in 15 days
- Update delayed
- in 1 month
- Update delayed
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
Originalgo-perfbook
This document outlines best practices for writing high-performance Go code.
The first sections cover writing optimized code in any language. The later sections cover Go-specific techniques.
Multiple Language Versions
Table of Contents
- Writing and Optimizing Go code
- How to Optimize
- Data Changes
- Algorithmic Changes
- Benchmark Inputs
- Program Tuning
- Optimization Workflow Summary
- Garbage Collection
- Runtime and Compiler
- Unsafe
- Common gotchas with the standard library
- Alternate Implementations
- CGO
- Advanced Techniques
- Assembly
- Optimizing an Entire Service
- Tooling
- Appendix
Contributing
This is a work-in-progress book in Go performance.
There are different ways to contribute:
- add to or summarizes the resources in TODO
- add bullet points or new topics to be covered
- write prose and flesh out the sections in the book
Eventually sample programs to optimize and exercises will be needed (maybe).
Coordination will be done in the #performance channel on the Gophers slack.
Explore related projects
codecrafters-io/build-your-own-x
Master programming by recreating your favorite technologies from scratch.
561,144 starspublic-apis/public-apis
A collective list of free APIs
497,361 starsmorluto/rea
Reverse engineer anything with agents, from app behavior down to native binaries.
444,435 starsopenclaw/openclaw
The AI that really does things. Any OS. Any Platform. The lobster way. 🦞
394,214 stars