ruby/benchmark/vm_fiber_count.yml

11 строки
261 B
YAML

# On Linux, you will need to increase the maximum number of memory maps:
# sudo sysctl -w vm.max_map_count=200000
prelude: |
fibers = []
benchmark:
vm_fiber_count: |
fiber = Fiber.new{Fiber.yield}
fibers << fiber
fiber.resume
loop_count: 100000