Skip to content

Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →

class method

RubyVM::YJIT.enable

(?stats: false | true | :quiet) -> void
enable(stats: false, log: false)

Enable YJIT compilation. stats option decides whether to enable YJIT stats or not. compilation_log decides whether to enable YJIT compilation logging or not.

  • stats:

    • false: Don’t enable stats.

    • true: Enable stats. Print stats at exit.

    • :quiet: Enable stats. Do not print stats at exit.

  • log:

    • false: Don’t enable the log.

    • true: Enable the log. Print log at exit.

    • :quiet: Enable the log. Do not print log at exit.