summaryrefslogtreecommitdiff
path: root/benchmark/vm2_struct_big_hset.yml
blob: d199c5bd4730a23c7a924a1edc563aae3c6a47e4 (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_big_hset: |
    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
    end
loop_count: 1