blob: fbf7283c298818fc25788b9bd2fc1e80ca5e6328 (
plain)
1
2
3
4
5
6
7
8
9
|
prelude: |
# based on benchmark for [ruby-core:65518] [Feature #10341] by Knut Franke
fib = Fiber.new do
loop { Fiber.yield }
end
benchmark:
vm2_fiber_switch: |
fib.resume
loop_count: 20000000
|