by floppy-disk · 2y ago · 0 comments
One can mitigate the problem somewhat using the `--disable-gems` flag, but that's not a good general solution.
[borg@cube] time ruby -e 'nil'
real 0m0.007s
$ ruby -v
ruby 3.3.1 (2024-04-23 revision c56cd86388) [x86_64-linux]
$ time ruby -e ''
real 0m0.122s
user 0m0.102s
sys 0m0.020s
I found an old Reddit thread also hinting at bad start-up times: https://old.reddit.com/r/ruby/comments/aqxepw/rubys_startup_....