ruby/benchmark/kernel_tap.yml

7 строки
108 B
YAML

prelude: |
obj = Object.new
x = nil
benchmark:
kernel_tap: obj.tap { |o| x = o }
loop_count: 20000000