Skip to content

Instantly share code, notes, and snippets.

@ncancelliere
Created November 22, 2016 16:32
Show Gist options
  • Save ncancelliere/2d4dcda20fee1ae6077d73ff85ef6288 to your computer and use it in GitHub Desktop.
Save ncancelliere/2d4dcda20fee1ae6077d73ff85ef6288 to your computer and use it in GitHub Desktop.
Ruby isn't slow - RubyGems is.
# How long does it take to execute empty string?
$ time ruby -e' '
real 0m0.346s
user 0m0.063s
sys 0m0.032s
$ time ruby --disable-gems -e' '
real 0m0.016s
user 0m0.009s
sys 0m0.004s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment