Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

change loop bm

Signed-off-by: Jimmy Schementi <jschementi@gmail.com>
  • Loading branch information...
commit 51a459cab62980671981d3c32d451b2fcbce7b26 1 parent c2f5498
Jim Deville jredville authored committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 loop.rb
4 loop.rb
View
@@ -1,7 +1,7 @@
require 'benchmark'
result = Benchmark.measure do
- $a = 1; 100000.times{|i| $a *= 2}
+ 100000.times{|i| i + 1}
end
-print result.real
+print result.real
Please sign in to comment.
Something went wrong with that request. Please try again.