ruby/benchmark/vm_struct_small_hset.yml

8 строки
123 B
YAML

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