summaryrefslogtreecommitdiff
path: root/benchmark/bm_vm2_struct_small_aref.rb
blob: 8eaa555b416dcfa5a00b1b7f83d483bffa85acb9 (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
end