Created
June 6, 2013 19:54
-
-
Save imustardsoft/5724413 to your computer and use it in GitHub Desktop.
benchmark
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
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