ruby/benchmark/vm_struct_big_aref_hi.yml

8 строки
148 B
YAML

prelude: |
s = Struct.new(*('a'..'z').map { |x| x.to_sym })
x = s.new
benchmark:
vm_struct_big_aref_hi: |
x.z # x[25]
loop_count: 6000000