Performance Engineering for Everyone
summary
Profiling production pages with the verer gem and visualizing with veneer.prof reveals exact bottlenecks: an N+1 comb teeth pattern that repeatedly calls an emoji renderer, a costly boolean check that builds an Elasticsearch query for a sidebar used elsewhere, and frequent GC pauses. A single change (deleting ~60 lines, caching/avoiding the check) cuts CPU on that page and frees substantial Elasticsearch capacity — GitHub reports reclaiming about 13% CPU across 65 million logged‑in requests per day.
AI-written summary · about
chapters (14)
- 0:00Introduction and context
- 2:51Common performance pitfalls
- 6:24What are flame graphs
- 8:32Generating flame graphs in Ruby
- 12:46Reading flame graphs
- 17:43Fixing performance with flame graphs
- 19:47Optimization strategies
- 20:52Performance as capacity
- 21:37AI in performance work
- 24:52Human side of performance
- 30:11Handling user feedback
- 33:18Talking to users effectively
- 35:03Data and user representation
- 37:09Conclusion and Q&A
