在命令行或 $RUBYOPT 环境变量中指定 --jit 参数开启 JIT:

    1. ruby --jit test.rb
    2. ruby --jit-verbose=1 test.rb
    3. RUBYOPT="--jit" rails server
    4. RUBYOPT="--jit-verbose=1" rails server
    5. RUBYOPT="--jit" sidekiq

    原文视频链接:https://gorails.com/episodes/how-to-use-ruby-2-6-jit