ruby/benchmark/vm_fiber_switch.yml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 строки
208 B
YAML
Исходник Обычный вид История

prelude: |
# based on benchmark for [ruby-core:65518] [Feature #10341] by Knut Franke
fib = Fiber.new do
loop { Fiber.yield }
end
benchmark:
vm_fiber_switch: |
fib.resume
loop_count: 20000000