在命令列或 $RUBYOPT
環境變數中指定 --jit
引數開啟 JIT:
ruby --jit test.rb
ruby --jit-verbose=1 test.rb
RUBYOPT="--jit" rails server
RUBYOPT="--jit-verbose=1" rails server
RUBYOPT="--jit" sidekiq
在命令列或 $RUBYOPT
環境變數中指定 --jit
引數開啟 JIT:
ruby --jit test.rb
ruby --jit-verbose=1 test.rb
RUBYOPT="--jit" rails server
RUBYOPT="--jit-verbose=1" rails server
RUBYOPT="--jit" sidekiq