~/talk

Benchmarking: You're Doing It Wrong

Talkat Strange Loop 2014 · 2014-09-17..09-19· [testing]
slides:none on file

Benchmarking that starts measuring immediately on one image accessed 1,000 times, takes three runs and reports the mean is misleading: caches (L1/L2/L3, app cache, memcache, S3) and warm-up and JIT change steady state, periodic GC and power‑scaling distort samples, and coordinate emission hides missed requests. Use realistic workloads, force or exclude initial GC, collect many samples (often 40+ runs), report percentiles and histograms (not just mean or 50th/99th), watch for bimodal distributions and 1% outliers that at scale break pages with 100 images.

AI-written summary · about

  1. 0:00Intro
  2. 1:19To Write Good Benchmarks...
  3. 2:23What's a Benchmark
  4. 4:13Website Serving Images
  5. 5:26It's Caches All The Way Down
  6. 7:12Caches in Benchmarks
  7. 11:20Wrong About the Machine
  8. 19:16Multimodal Distribution
  9. 20:13Wrong About Stats
  10. 23:31Programmers waste enormous amounts of time thinking about ... the speed of noncritical parts of their programs... Forget about small efficiencies ...97% of the time
  11. 23:57Wrong About What Matters
  12. 26:32Becoming Less Wrong
  13. 29:47Microbenchmarking: Blessing & Curse
  14. 31:47Non-Constant Work Per Iteration
  15. 33:49Outliers
  16. 34:25Workload
~/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.