Gem that enables YJIT for you.
require "yjit"
calls RubyVM::YJIT.enable
. That's it.
If you use Rails 7.2+, you shouldn't need this gem because the framework does that by default. (rails/rails#51894).
The gem is available as open source under the terms of the MIT License.