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

    fibers.clear
    GC.start
loop_count: 200