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