examples/bench_iteration.rb in viiite-0.1.0 vs examples/bench_iteration.rb in viiite-0.2.0
- old
+ new
@@ -1,9 +1,7 @@
-require 'viiite'
-n = 15000
-Viiite.bm do |r|
+Viiite.bench do |r|
+ n = 15000
r.variation_point :ruby, Viiite.which_ruby
r.report(:for) { for i in 1..n; a = "1"; end }
r.report(:times) { n.times do ; a = "1"; end }
r.report(:upto) { 1.upto(n) do ; a = "1"; end }
end
-