blob: 892622f121710bf314f9753d32f6d8038112ae66 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
# https://bugs.ruby-lang.org/issues/16009
prelude: |
fibers = []
benchmark:
vm_fiber_reuse_gc: |
2000.times do
fiber = Fiber.new{Fiber.yield}
fibers << fiber
fiber.resume
end
fibers.clear
loop_count: 100
|