Permalink
Browse files

change loop bm

Signed-off-by: Jimmy Schementi <jschementi@gmail.com>
  • Loading branch information...
1 parent c2f5498 commit 51a459cab62980671981d3c32d451b2fcbce7b26 @jredville jredville committed with May 6, 2009
Showing with 2 additions and 2 deletions.
  1. +2 −2 loop.rb
View
4 loop.rb
@@ -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

0 comments on commit 51a459c

Please sign in to comment.