summaryrefslogtreecommitdiff
path: root/benchmark/vm2_struct_small_aset.yml
blob: 3e84a61dd0532ad279769cabbf45c4211a961f0c (plain)
1
2
3
4
5
6
7
8
9
10
11
# loop_count is not utilized since `i` is involved in the script
benchmark:
  vm2_struct_small_aset: |
    s = Struct.new(:a, :b, :c)
    x = s.new
    i = 0
    while i<6_000_000
      i += 1
      x.a = i
    end
loop_count: 1