summaryrefslogtreecommitdiff
path: root/benchmark/bm_io_select.rb
blob: 19248daeb12b5f75dbf307eb9c203c27a78f6209 (plain)
1
2
3
4
5
6
7
8
9
# IO.select performance

w = [ IO.pipe[1] ];

nr = 1000000
nr.times {
  IO.select nil, w
}