summaryrefslogtreecommitdiff
path: root/benchmark/bm_vm2_struct_small_hset.rb
blob: 33c36d20f13949f350f54b171433d512c75358fd (plain)
1
2
3
4
5
6
7
s = Struct.new(:a, :b, :c)
x = s.new
i = 0
while i<6_000_000 # benchmark loop 2
  i += 1
  x[:a] = 1
end