Basecamp code runs 18 percents faster with YJIT

01-Dec-2023 806
Basecamp is currently running Ruby 3.3.0-preview3 and Rails Edge (master branch).We configure YJIT in our servers via RUBYOPT=--yjit-disable --yjit-exec-mem-size=192 and then enable YJIT at runtime via RubyVM::YJIT.enable. This allows us to achieve a faster boot time, compared to enabling YJIT at boot. We also enabled yjit stats to a few servers.We track our metrics in Prometheus, using Yabeda to instrument, and Grafana to render them.
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