Created
January 23, 2012 06:32
-
-
Save taelor/1661178 to your computer and use it in GitHub Desktop.
rubies benchmarking test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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