ruby/benchmark/io_select.rb

10 строки
92 B
Ruby

# IO.select performance
w = [ IO.pipe[1] ];
nr = 1000000
nr.times {
IO.select nil, w
}