Skip to main content

YJIT

What is YJIT?

YJIT is a lightweight, minmalistic Ruby JIT built inside CRuby.

How to use YJIT?

  • Make sure you have Ruby 3.2 installed
  • Make sure you have rustc 1.58.0 or newer installed before you install Ruby Check rustc version by running
rustc --version
  • Pass the --yjit command line flag to ruby or set the RUBY_YJIT_ENABLE environment variable

See also