Sha256: 95fc3db1ee1c9d74d7a0c277e964ad2a4f61fb1d3778d5497e7fd614f8c72778

Contents?: true

Size: 233 Bytes

Versions: 1

Compression:

Stored size: 233 Bytes

Contents

Viiite.bench do |r|
  n = 1000
  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 spec/fixtures/bdb/bench_iteration.rb