Ruby 3.2.1 with YJIT

10-Mar-2023 807
I've been using Ruby 3.2.1 YJIT for some time now and overall, I'm seeing anywhere from 10-20 percents performance improvements over running Ruby 3.0.5. Sorry, I don't have an apple-to-apple comparison for just YJIT vs non-YJIT. However, the performance improvements are real world scenarios on a Ruby on Rails 7.0.4 application.So, I've recently formatted my primary desktop which is running macOS 13.2.1 and figured that I would document my steps on my preferred way of installing Ruby as well as getting YJIT to work. It's important to note that this is also an Apple Silicon machine. These steps should work regardless of which Apple Silicon you're using.
Use coupon code:

RUBYONRAILS

to get 30% discount on our bundle!
Prepare for your next tech interview with our comprehensive collection of programming interview guides. Covering JavaScript, Ruby on Rails, React, and Python, these highly-rated books offer thousands of essential questions and answers to boost your interview success. Buy our 'Ultimate Job Interview Preparation eBook Bundle' featuring 2200+ questions across multiple languages. Ultimate Job Interview Preparation eBook Bundle