ruby/benchmark/vm2_struct_big_href_hi.yml

8 строки
143 B
YAML

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