1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/benchmark/vm_fiber_switch.yml

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

10 lines
208 B
YAML
Raw Normal View History

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