Skip to content

Instantly share code, notes, and snippets.

@tomstuart
Created July 17, 2014 15:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tomstuart/d9ce295b89c73a4b69ff to your computer and use it in GitHub Desktop.
Save tomstuart/d9ce295b89c73a4b69ff to your computer and use it in GitHub Desktop.
$ cat Gemfile
source 'https://rubygems.org/'
$ time ruby -e 'puts "Hello world"'
Hello world
real 0m0.197s
user 0m0.117s
sys 0m0.073s
$ time bundle exec ruby -e 'puts "Hello world"'
Hello world
real 0m1.046s
user 0m0.863s
sys 0m0.172s
@tooky
Copy link

tooky commented Jul 17, 2014

If you ever wanted a reason to use bundler's binstubs:

this is in a reasonable size rails 3.2 app, the $PATH includes the binstubs directory

$ time rake environment
noglob rake environment  0.09s user 0.02s system 16% cpu 0.637 total

$ time bundle exec rake environment
bundle exec rake environment  5.56s user 1.20s system 99% cpu 6.795 total

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment