Ruby Lands New "RJIT" Just-In-Time Compiler

Written by Michael Larabel in Programming on 9 March 2023 at 06:03 AM EST. 13 Comments
Back in 2021 Ruby merged the YJIT just-in-time compiler that last year with Ruby 3.2 was deemed production grade. There's also been the MJIT compiler that relies upon an external C compiler. And now landing this week in Ruby is RJIT as the newest just-in-time effort.

RJIT is intended to replace MJIT and it's a pure-Ruby assembler to generate native code - thus not requiring a C compiler like MJIT at run-time nor a Rust compiler at build-time like with YJIT. RJIT's warmup is currently slower than YJIT but faster than MJIT.

RJIT is generating code similar to YJIT. In major benchmarks RJIT is outperforming MJIT but "nowhere near YJIT" in its current form.

This new JIT compiler for Ruby has been merged via this pull if interested in all the technical details and benchmarks on RJIT.
Related News
About The Author
Michael Larabel

Michael Larabel is the principal author of and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via

Popular News This Week