diff options
Diffstat (limited to 'benchmark/io_select3.yml')
-rw-r--r-- | benchmark/io_select3.yml | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/benchmark/io_select3.yml b/benchmark/io_select3.yml deleted file mode 100644 index c97d0e0cd1..0000000000 --- a/benchmark/io_select3.yml +++ /dev/null @@ -1,24 +0,0 @@ -prelude: | - # IO.select performance. a lot of fd -benchmark: - io_select3: | - - ios = [] - nr = 100 - if defined?(Process::RLIMIT_NOFILE) - max = Process.getrlimit(Process::RLIMIT_NOFILE)[0] - else - max = 64 - end - puts "max fd: #{max} (results not apparent with <= 1024 max fd)" - - (max - 10).times do - r, w = IO.pipe - r.close - ios.push w - end - - nr.times do - IO.select nil, ios - end -loop_count: 1 |