summaryrefslogtreecommitdiff
path: root/benchmark/vm_fiber_reuse.yml
blob: 4ca41085b1d6537cc57d010ae88110bc7a57ea3a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
prelude: |
  GC.disable
  fibers = []
benchmark:
  vm_fiber_reuse: |
    1024.times do
      fiber = Fiber.new{Fiber.yield}
      fibers << fiber
      fiber.resume
    end

    fibers.clear
    GC.start
loop_count: 200