Comparison of using run time & memory usage to run a ruby script that requires a single gem (which does nothing) then exits.
When standalone is available:
rm -rf ./bundle ./vendor ./.bundle
bundle --standalone
time ./test.rb
real 0m0.056s
user 0m0.041s
sys 0m0.012s
RSS: 6460 KB
When using vendor directory and require bundle/setup
:
rm -rf ./bundle ./vendor ./.bundle
bundle --deployment
time ./test.rb
real 0m0.268s
user 0m0.230s
sys 0m0.037s
RSS: 17592 KB