Created
July 7, 2009 21:33
-
-
Save PatrickTulskie/142397 to your computer and use it in GitHub Desktop.
This file contains 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
%w(rubygems benchmark).each { |gem| require gem } | |
puts "Outside: " + Benchmark.measure { |a| puts "Inside: " + (Benchmark.measure { |b| 10000.times { |val| puts "#{val} bananas!" } }).to_s }.to_s |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment