summaryrefslogtreecommitdiff
path: root/benchmark/vm_struct_big_aset.yml
blob: 69550d14ea215c8429a5f5fab609c715d7995f64 (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:
  vm_struct_big_aset: |
    s = Struct.new(*('a'..'z').map { |x| x.to_sym })
    x = s.new
    i = 0
    while i<6_000_000
      i += 1
      x.k = i # x[10] = i
    end
loop_count: 1