ruby/benchmark/vm2_struct_small_href.yml

8 строки
120 B
YAML

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