~/talk

"It is correct, but is it fast?"

Talkat RubyConfBY 2019 · on Saturday, 2019-04-06· [ruby-on-rails, web-performance, testing]
links:none on file
slides:none on file

A Ruby state‑machine gem fighting_machine ships a memory leak from a background thread that never stops, prompting adding automated performance assertions using RSpec + spec‑benchmark. Examples show a tiny clamp method moving from ~1.8M to 7.5M iterations/sec after eliminating allocations and using perform_faster and perform_allocations matchers to assert speed and object counts. Scalability tests use exponentially growing inputs against a Merkle tree and BenchmarkTrend to assert linear behavior. Advice: profile to find the hot unit, add performance specs in a separate folder and run them on CI.

AI-written summary · about

  1. 0:00Start
  2. 4:36Perf Testing
  3. 7:40"Fundamental" change
  4. 13:00Performance "surprises"
  5. 16:00"Measuring Empirical Computational Complexity" [2]
  6. 16:30benchmark-trend
  7. 17:03Scalability testing algorithm
  8. 20:12How do we choose the subject of our performance assertion?
  9. 20:48Unit of work
  10. 22:18Critical path
  11. 22:28Intuition is not a reliable indicator for performance improvements!
  12. 22:40'single' vs "double"
  13. 23:56Does performance matter?
  14. 25:20Design vs Optimization
  15. 26:26Key Takeaways
~/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.