Sha256: d08c75d2c3ebcbec89cef08347d7d6676ac29a37e19e8e5a379d757b24efb0a6

Contents?: true

Size: 234 Bytes

Versions: 1

Compression:

Stored size: 234 Bytes

Contents

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
viiite-0.2.0 examples/bench_iteration.rb