2018-07-08 17:19:57 +00:00
|
|
|
# loop_count is not utilized since `i` is involved in the script
|
2018-07-08 15:35:22 +00:00
|
|
|
benchmark:
|
2018-07-08 17:19:57 +00:00
|
|
|
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
|