Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

How one would check if the YJIT was correctly enabled?


    $ ruby -v
    ruby 3.1.0dev (2021-11-08T09:35:22Z master 7cc4e147fc) [x86_64-darwin21]
    $ ruby --yjit -v
    ruby 3.1.0dev (2021-11-08T09:35:22Z master 7cc4e147fc) +YJIT [x86_64-darwin21]
    $ ruby --yjit -e 'p RubyVM::YJIT.enabled?'
    true
    $ ruby  -e 'p RubyVM::YJIT.enabled?'
    false


You can call `RubyVM::YJIT.enabled?` to check.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: