From slow to go: Rails test profiling hands-on
summary
Workshop shows concrete steps and wins: run a sample of 100 examples with stackprof and verer to find boot and GC hotspots, turn off per-run coverage to cut load time ~15%, disable debugger and enable webpacker caching for another ~10% cut, and flip Sidekiq to fake to drop its share from ~25% to ~2–3% of run time. TestProf features used include TestProf toolbox event profiling, FactoryProf and LetItBe (halving some request specs from ~3.5s to ~1.5s), and an rspec stamp patches workflow that auto-inserts 13 quick fixes.
AI-written summary · about
chapters (13)
- 0:00Introduction
- 1:04Why optimizing Rails tests matters
- 8:52Profiling with stackprof and verer
- 21:13Analyzing results and bottlenecks
- 40:57Disabling coverage reports
- 47:44Focusing test groups with testprof
- 50:37Profiling sidekick and paperclip
- 1:07:05Optimizing sidekick and paperclip
- 1:21:49Factory profiling with FactoryProf
- 1:31:27Fixing factory cascades
- 1:40:08Faster setup with Let It Be
- 1:48:03Profiling before/after hooks
- 2:01:55Summary








