ruby/benchmark/vm2_struct_big_href_lo.yml

8 строки
143 B
YAML

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