summaryrefslogtreecommitdiff
path: root/benchmark/vm_thread_close.yml
blob: 4867f1ca2af82e87784e9f1c3e1c1eb0a7f05298 (plain)
1
2
3
4
5
6
7
8
9
benchmark:
  vm_thread_close: |
    1000.times { Thread.new { sleep } }
    i = 0
    while i<100_000 # benchmark loop 3
      i += 1
      IO.pipe.each(&:close)
    end
loop_count: 1