Skip to content

Instantly share code, notes, and snippets.

@taelor
Created January 23, 2012 06:32
Show Gist options
  • Save taelor/1661178 to your computer and use it in GitHub Desktop.
Save taelor/1661178 to your computer and use it in GitHub Desktop.
rubies benchmarking test
require 'benchmark'
rubies = ['1.9.2-p290', '1.9.3-p0', '1.9.3-p0-patched']
n = 10 # number of times to run
Benchmark.bm(7) do |x|
rubies.each do |ruby|
x.report("#{ruby}") { n.times{ `rvm-shell #{ruby} -c 'cd ~/code/consolo && bundle exec rails runner puts "ruby!"' &> /dev/null` } }
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment