[rubygems/rubygems] Use a constant empty tar header to avoid extra allocations
[ruby.git] / benchmark / vm_fiber_switch.yml
blob3de36b66ebe19cb589af9c3e0c9dbe26c12b2693
1 prelude: |
2   # based on benchmark for [ruby-core:65518] [Feature #10341] by Knut Franke
3   fib = Fiber.new do
4     loop { Fiber.yield }
5   end
6 benchmark:
7   vm_fiber_switch: |
8     fib.resume
9 loop_count: 20000000