2018-07-08 17:22:58 +00:00
|
|
|
# loop_count is not utilized since `i` is involved in the script
|
2018-07-08 15:35:22 +00:00
|
|
|
benchmark:
|
2020-04-14 04:37:42 +00:00
|
|
|
vm_struct_small_aset: |
|
2018-07-08 17:22:58 +00:00
|
|
|
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
|