YJIT: A Basic Block Versioning JIT Compiler
summary
YJIT is a JIT built inside CRuby that implements Lazy Basic Block Versioning to record and specialize types only for paths actually seen at runtime. It runs as a drop‑in CRuby replacement, passes the CRuby test suite, and powers Shopify Storefront in production. Benchmarks show 15% to 19% speedups on real-world Rails workloads with very fast warmup and practical compatibility — near‑zero breakage and near-100% compatibility with existing gems.
AI-written summary · about
chapters (5)
related talks
30mYJIT - Building a new JIT Compiler inside CRuby
20mEvaluating YJIT’s Performance in a Production Context: A Pragmatic Approach
20mBYOJ: Build your own JIT with Ruby
28mZJIT: The future of Ruby performance
37mKeynote: YJIT's Three Languages: the Fun of Code that Writes Code
45mClosing Keynote
40mThe secret power of Ruby 2.6: JIT
27mThe design and implementation of ZJIT & the next five years
