diff options
Diffstat (limited to 'benchmark/io_select.rb')
-rw-r--r-- | benchmark/io_select.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/benchmark/io_select.rb b/benchmark/io_select.rb new file mode 100644 index 0000000000..19248daeb1 --- /dev/null +++ b/benchmark/io_select.rb @@ -0,0 +1,9 @@ +# IO.select performance + +w = [ IO.pipe[1] ]; + +nr = 1000000 +nr.times { + IO.select nil, w +} + |