Skip to content

Instantly share code, notes, and snippets.

@carllerche
Created August 25, 2009 01:31
Show Gist options
  • Save carllerche/174382 to your computer and use it in GitHub Desktop.
Save carllerche/174382 to your computer and use it in GitHub Desktop.
require "benchmark"
def do_it
i = 0
while i < 10_000_000
Object.allocate
Object.new
i+=1
end
end
do_it
puts Benchmark.measure { do_it }.real
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment