зеркало из https://github.com/github/ruby.git
12 строки
260 B
YAML
12 строки
260 B
YAML
|
# loop_count is not utilized since `i` is involved in the script
|
||
|
benchmark:
|
||
|
vm_struct_big_aset: |
|
||
|
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 # x[10] = i
|
||
|
end
|
||
|
loop_count: 1
|