Skip to content
gqlxj1987's Blog
Go back

Go performance

Edit page

go performance optimization workflow:

The basic rules of the game are:

  1. minimize CPU usage
    • do less work
    • this generally means “a faster algorithm”
    • but CPU caches and the hidden constants in O() can play tricks on you
  2. minimize allocations (which leads to less CPU stolen by the GC)
  3. make your data quick to access

Basic

Introductory Pofiling

Tracer

Heap Allocations

Runtime

Common gotchas with the standard library

Alternate implementions

perf(perf2pprof)


Edit page
Share this post on:

Previous Post
Golang Return
Next Post
Page Rank