~/talk

Two Go programs, three different profiling techniques, all in 40 minutes

Talkat Codemotion Berlin 2019 · 2019-11-12..11-13· [go]
slides:none on file

Compares three concrete Go profilers: CPU sampling via go tool pprof, heap sampling (allocations) and the execution tracer that exports to Chrome DevTools. Shows a word-count program that drops from ~1.1s to ~0.01s after adding a buffered reader (removes per-byte syscalls), then reveals 1.2MB of allocations from one-byte buffers and fixes them to cut GC overhead. Shows a Mandelbrot build where per-pixel goroutines cost more than they help and switching to per-row/workers yields ~4x speedup, illustrating Amdahl’s Law.

AI-written summary · about

  1. 0:00Start
  2. 10:37Heap Profile
  3. 23:31Source Code
  4. 24:58The Execution Tracer
  5. 26:12Trace Profiling
  6. 31:19Trace File
~/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.