Skip to content

Instantly share code, notes, and snippets.

@imustardsoft
Created June 6, 2013 19:54
Show Gist options
  • Save imustardsoft/5724413 to your computer and use it in GitHub Desktop.
Save imustardsoft/5724413 to your computer and use it in GitHub Desktop.
benchmark
require 'benchmark'
result = Benchmark.measure do
"a"*1_000_000_000
end
puts result.total
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment