~/talk

Optimizing Production Performance with MRI JIT

Talkat RubyConf 2021 · 2021-11-08..11-10· [ruby, web-performance]
slides:none on file

Claims that MRI JIT finally speeds real Rails apps on Ruby 3.0 and gives measurable wins when tuned: use Ruby 3.0.0 (3.0.1 is broken, 3.0.2 differs), increase jit_max_cache=10000, set --jit-call-threshold=10000, disable or account for TracePoint/zeitwerk and ractor interactions, wait for jit_compaction and watch jit verbose logs, and accept temporary slowdowns during C compilation; reported benchmarks show JIT surpassing interpreter performance after these concrete fixes and warmup steps.

AI-written summary · about

  1. 0:00Start
  2. 2:03Characteristics of the Mgt
  3. 9:10Key Ideas
  4. 14:44Change the Jit Max Cache
  5. 22:55Optimization Switches
  6. 23:32Instance Variable Cache
  7. 24:18Send Cache
  8. 24:56Jit Compaction
  9. 28:38Conclusion
~/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.