require_relative 'support/benchmark_bundler.rb'
require 'bundler/cli'

noop_gem = Pathname(__FILE__).expand_path + '../gems/noop-gem'

Dir.mktmpdir do |dir|
  Dir.chdir(dir) do
    File.write('Gemfile', <<-GEMFILE)
      source 'https://rubygems.org'
      gem 'rails'
      gem 'noop-gem', path: '#{noop_gem}'
    GEMFILE
    system("bundle install --quiet")

    Benchmark.do_benchmark('bundle exec shell') do
      system("bundle exec 'noop-gem foo bar'")
    end
  end
end

Add a bundle exec benchmark that uses a shell
Add a bundle exec benchmark that uses a shell
