tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Filip Hanik - Dev Lists <devli...@hanik.com>
Subject Re: NIO vs BIO speed
Date Thu, 22 Jun 2006 23:35:42 GMT
Here is another test that I ran from a remote machine, setting 
maxThreads="25" and ab concurrency to 50 and keepalive on.
In this case, NIO is a lot faster. Turn off keepalive on ab, and we get 
similar results to previous run, where BIO is a tad faster.

[filip@fedora4 bin]$ ./ab -n 20000 -k -c 50 
http://192.168.3.105:8080/tomcat.gif (BIO)
This is ApacheBench, Version 2.0.41-dev <$Revision: 1.121.2.12 $> apache-2.0
Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright (c) 1998-2002 The Apache Software Foundation, 
http://www.apache.org/

Benchmarking 192.168.3.105 (be patient)
Completed 2000 requests
Completed 4000 requests
Completed 6000 requests
Completed 8000 requests
Completed 10000 requests
Completed 12000 requests
Completed 14000 requests
Completed 16000 requests
Completed 18000 requests
Finished 20000 requests


Server Software:        Apache-Coyote/1.1
Server Hostname:        192.168.3.105
Server Port:            8080

Document Path:          /tomcat.gif
Document Length:        1934 bytes

Concurrency Level:      50
Time taken for tests:   7.41056 seconds
Complete requests:      20000
Failed requests:        0
Write errors:           0
Keep-Alive requests:    10028
Total transferred:      43239331 bytes
HTML transferred:       38687126 bytes
Requests per second:    2840.48 [#/sec] (mean)
Time per request:       17.603 [ms] (mean)
Time per request:       0.352 [ms] (mean, across all concurrent requests)
Transfer rate:          5996.97 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    5  22.1      0    3009
Processing:     0   11   5.8     11     273
Waiting:        0   10   5.4     11     226
Total:          0   16  22.9     16    3027

Percentage of the requests served within a certain time (ms)
  50%     16
  66%     21
  75%     23
  80%     24
  90%     26
  95%     28
  98%     30
  99%     32
 100%   3027 (longest request)
[filip@fedora4 bin]$ ./ab -n 20000 -k -c 50 
http://192.168.3.105:8081/tomcat.gif
This is ApacheBench, Version 2.0.41-dev <$Revision: 1.121.2.12 $> apache-2.0
Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright (c) 1998-2002 The Apache Software Foundation, 
http://www.apache.org/

Benchmarking 192.168.3.105 (be patient)
Completed 2000 requests
Completed 4000 requests
Completed 6000 requests
Completed 8000 requests
Completed 10000 requests
Completed 12000 requests
Completed 14000 requests
Completed 16000 requests
Completed 18000 requests
Finished 20000 requests


Server Software:        Apache-Coyote/1.1
Server Hostname:        192.168.3.105
Server Port:            8081

Document Path:          /tomcat.gif
Document Length:        1934 bytes

Concurrency Level:      50
Time taken for tests:   5.526996 seconds
Complete requests:      20000
Failed requests:        0
Write errors:           0
Keep-Alive requests:    20000
Total transferred:      43281248 bytes
HTML transferred:       38681018 bytes
Requests per second:    3618.60 [#/sec] (mean)
Time per request:       13.817 [ms] (mean)
Time per request:       0.276 [ms] (mean, across all concurrent requests)
Transfer rate:          7647.19 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    0   0.1      0       3
Processing:     1   13   3.7     13     220
Waiting:        1   13   3.7     13     220
Total:          1   13   3.8     13     220

Percentage of the requests served within a certain time (ms)
  50%     13
  66%     14
  75%     15
  80%     16
  90%     17
  95%     19
  98%     21
  99%     22
 100%    220 (longest request)
[filip@fedora4 bin]$


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message