Profile and benchmark every single change
summary
Argues for bench-driven development by attaching benchmarks and profiles to every change, using a custom DSL and the PS2 profiler with differential flame graph diffs and editor ghost-text. Shows concrete wins: profiler memory down 90%, routing and handler code optimized to hit a 100× routing speed target (practical result is a ~2% app speedup), switches algorithms by route count, makes params a fast instance var option, replaces block calls with defined methods, and warns CI noise and gacha benchmarking.
AI-written summary · about
chapters (6)
- 0:00Introduction and updates
- 3:43Benchmark driven development
- 8:26Toolset for benchd
- 17:33Making Zinatra 100x faster
- 25:28Tips for better benchmarking
- 27:39Q&A and summary
related talks
29mHow to Performance
44mWriting fast Ruby
43mReal World Ruby Performance at Scale
34mMetric Driven Development with Ruby on Rails
53mWriting Fast Ruby
29mPractical guide to benchmarking your optimizations
19mProfiling Your Code: 5 Tips to Significantly Boost Performance
01h 03mPerformance loop—A practical guide to profiling and benchmarking
