ruby/benchmark/kernel_clone.yml

7 строки
172 B
YAML

prelude: "object = Object.new"
benchmark:
clone: "object.clone"
clone_true: "object.clone(freeze: true)"
clone_false: "object.clone(freeze: false)"
loop_count: 10000