Created
January 28, 2014 20:16
-
-
Save NZKoz/8675428 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Koz-Prostyle-2:store michaelkoziarski$ time /usr/bin/ruby -e '' | |
real 0m0.117s | |
user 0m0.031s | |
sys 0m0.056s | |
Koz-Prostyle-2:store michaelkoziarski$ time ~/.rbenv/shims/ruby -e '' | |
real 0m0.096s | |
user 0m0.057s | |
sys 0m0.038s |
sdball
commented
Jan 28, 2014
With chruby and ruby 2.0.0-p353:
$ /usr/bin/ruby -v
ruby 2.0.0p353 (2013-11-22 revision 43784) [x86_64-linux]
$ time /usr/bin/ruby -e ''
real 0m0.350s
user 0m0.115s
sys 0m0.043s
$ chruby ruby-2.0.0-p353
$ which ruby
~/.rubies/ruby-2.0.0-p353/bin/ruby
$ time ruby -e ''
real 0m0.031s
user 0m0.029s
sys 0m0.002s
If you do not want any additional overhead when invoking ruby, I highly recommend trying chruby.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment