carlhuda/bundler — Issue #1508: Bundle exec is 2x slower than using binstubs
Author: semaperepelitsa
Created: 2011-10-29 11:45:10+00:00
State: open

Running `bundle exec rake --version` is almost two times slower than running `bin/rake --version`. I tested this on both 1.0.21 and 1.1.rc. The RC results are also two times slower than the latest stable release results.

$ bundle -v
Bundler version 1.0.21
$ bundle > /dev/null; time bundle exec rake --version; time bin/rake --version
rake, version 0.9.2
bundle exec rake --version 3,87s user 0,50s system 98% cpu 4,436 total
rake, version 0.9.2
bin/rake --version 1,95s user 0,27s system 99% cpu 2,240 total

$ bundle -v
Bundler version 1.1.rc
$ bundle > /dev/null; time bundle exec rake --version; time bin/rake --version
rake, version 0.9.2
bundle exec rake --version 8,33s user 0,52s system 99% cpu 8,925 total
rake, version 0.9.2
bin/rake --version 4,19s user 0,28s system 96% cpu 4,622 total

What is causing this?