summaryrefslogtreecommitdiff
path: root/benchmark/bm_io_select2.rb
diff options
context:
space:
mode:
authorkosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-05-04 12:13:02 +0000
committerkosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-05-04 12:13:02 +0000
commit512624b62839f5ffe0faebfceb49411b10ee38bf (patch)
tree9f9296fc0240ad09bcedb167f78c49afd18a4e40 /benchmark/bm_io_select2.rb
parentbe62297f9230c4cf8d73321c5c9e28037b35fc1d (diff)
* benchmark/bm_io_select2.rb: reduce number of using file
descriptors. because gdb need some fds. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31431 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'benchmark/bm_io_select2.rb')
-rw-r--r--benchmark/bm_io_select2.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/benchmark/bm_io_select2.rb b/benchmark/bm_io_select2.rb
index a4925b5..7b167af 100644
--- a/benchmark/bm_io_select2.rb
+++ b/benchmark/bm_io_select2.rb
@@ -5,7 +5,7 @@ nr = 1000000
max = Process.getrlimit(Process::RLIMIT_NOFILE)[0]
puts "max fd: #{max} (results not apparent with <= 1024 max fd)"
-((max / 2) - 2).times do
+((max / 2) - 10).times do
ios.concat IO.pipe
end