ruby/benchmark/vm_struct_small_href.yml

8 строки
119 B
YAML

prelude: |
s = Struct.new(:a, :b, :c)
x = s.new
benchmark:
vm_struct_small_href: |
x[:a]
loop_count: 6000000