~/talk

Optimizing Go Code Without a Blindfold

Talkat GopherCon UK 2019 · 2019-08-21..08-23· [go]
slides:none on file

Shows concrete tools and numbers: raw benchmarks fluctuate up to 4–5% noise so tiny wins like 1.3% disappear, the workflow uses benchstat and benchcmd/benchcmp to collect multiple samples and report p‑values, and uses perf lock to cap CPU turbo so throttling stops inflating variance. Demonstrates compiler diagnostics (inlining, escape analysis, BCE) and a live change to a code generator that removes nested unused variables, which cuts a 2.7s codegen run by about 5% in practice.

AI-written summary · about

  1. 0:00Start
  2. 0:05Is your program slow?
  3. 7:05What's a "p-value"?
  4. 8:19Multiple testing problem!
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.