Skip to content

Instantly share code, notes, and snippets.

@PatrickTulskie
Created July 7, 2009 21:33
Show Gist options
  • Save PatrickTulskie/142397 to your computer and use it in GitHub Desktop.
Save PatrickTulskie/142397 to your computer and use it in GitHub Desktop.
%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