~/talk

Making it Fast: The Power of Benchmarking

Talkat Functional Conf 2017 · 2017-11-16..11-19· [testing]
links:none on file
slides:none on file

Shows a concrete Elixir case: an Advent of Code 2D-lights solution first implemented with a map that runs tens of seconds, then reimplemented with Erlang :array and measured with Benchfella. Benchmarks on a tiny synthetic input mislead — map looks faster — but with realistic large ranges the array version cuts runtime (example runs go from ~35s to ~18s). Recommends writing benchmarks early (after working code), keep inputs simplified but representative, and automate snapshots/graphs to catch regressions.

AI-written summary · about

  1. 0:00Start
  2. 0:53I write software...
  3. 2:07Making it fast...
  4. 2:17GC optimization, coding tricks, compiler hacks, VM flags, etc
  5. 2:56fast is a process
  6. 3:26Benchmarking != Profiling
  7. 4:02Benchmarking -= Unit Testing
  8. 6:08When learning a new language / stack...
  9. 9:22Mutating a giant data structure
  10. 17:40Benchfella
  11. 18:47Let's benchmark!
  12. 20:49Erlang/OTP to the rescue!
  13. 29:40first • Simplify the inputs
  14. 30:38Questions?
~/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.