## usage: ruby -s invoke.rb [-n=1000] [command] require 'benchmark' n = ($n || 1000).to_i puts "*** n=#{n}" commands = ARGV.collect {|lib| "ruby -e nil -r #{lib}" } commands.unshift("ruby -e nil") Benchmark.bm(30) do |job| commands.each do |command| title = command job.report(title) do (n/10).times do system command; system command system command; system command system command; system command syst