You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by Oleg Kalnichevski <ol...@apache.org> on 2006/03/29 12:11:43 UTC

[HttpComponents] HttpCore vs Tomcat Coyote 5.5.16; performance bechmarks

Based on my (very limited) tests at this point HttpCore appears
approximately 4% to 10% slower than Tomcat Coyote connector depending on
the length of a document served. As far as I am concerned such a margin
is to be expected due to differences in scope and design goals of two
toolkits. There is undoubtedly room for optimization, though

Oleg

Tomcat config file:
http://svn.apache.org/repos/asf/jakarta/httpcomponents/trunk/tcconnector/src/tests/server.xml


Tomcat Coyote 5.5.16 (HTTP GET 689 bytes; 200,000 repetitions)
--------------------
oleg@dld810:~$ ab2 -k -n 200000
http://localhost:8080/servlets-examples/servlet/RequestInfoExample
This is ApacheBench, Version 2.0.41-dev <$Revision: 1.141 $> 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/

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

Document Path:          /servlets-examples/servlet/RequestInfoExample
Document Length:        689 bytes

Concurrency Level:      1
Time taken for tests:   31.207566 seconds
Complete requests:      200000
Failed requests:        0
Write errors:           0
Keep-Alive requests:    200000
Total transferred:      172200000 bytes
HTML transferred:       137800000 bytes
Requests per second:    6408.70 [#/sec] (mean)
Time per request:       0.156 [ms] (mean)
Time per request:       0.156 [ms] (mean, across all concurrent
requests)
Transfer rate:          5388.57 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    0   0.0      0       0
Processing:     0    0   0.2      0      46
Waiting:        0    0   0.1      0      46
Total:          0    0   0.2      0      46

HttpCore 2006-03-29 (HTTP GET 689 bytes; 200,000 repetitions)
--------------------
oleg@dld810:~$ ab2 -k -n 200000
http://localhost:8888/servlets-examples/servlet/RequestInfoExample
This is ApacheBench, Version 2.0.41-dev <$Revision: 1.141 $> 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/

Server Software:        Jakarta-HttpComponents/1.1
Server Hostname:        localhost
Server Port:            8888

Document Path:          /servlets-examples/servlet/RequestInfoExample
Document Length:        684 bytes

Concurrency Level:      1
Time taken for tests:   34.224297 seconds
Complete requests:      200000
Failed requests:        0
Write errors:           0
Keep-Alive requests:    200000
Total transferred:      164200000 bytes
HTML transferred:       136800000 bytes
Requests per second:    5843.80 [#/sec] (mean)
Time per request:       0.171 [ms] (mean)
Time per request:       0.171 [ms] (mean, across all concurrent
requests)
Transfer rate:          4685.30 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    0   0.1      0      38
Processing:     0    0   0.1      0      19
Waiting:        0    0   0.1      0      19
Total:          0    0   0.2      0      39

Tomcat Coyote 5.5.16 (HTTP GET 183446 bytes; 100,000 repetitions)
--------------------
oleg@dld810:~$ ab2 -k -n 100000
http://localhost:8080/tomcat-docs/changelog.html
This is ApacheBench, Version 2.0.41-dev <$Revision: 1.141 $> 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/

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

Document Path:          /tomcat-docs/changelog.html
Document Length:        183446 bytes

Concurrency Level:      1
Time taken for tests:   58.325312 seconds
Complete requests:      100000
Failed requests:        0
Write errors:           0
Keep-Alive requests:    100000
Total transferred:      1188130816 bytes
HTML transferred:       1164730816 bytes
Requests per second:    1714.52 [#/sec] (mean)
Time per request:       0.583 [ms] (mean)
Time per request:       0.583 [ms] (mean, across all concurrent
requests)
Transfer rate:          19893.32 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    0   0.0      0       0
Processing:     0    0   0.3      0      47
Waiting:        0    0   0.1      0      17
Total:          0    0   0.3      0      47


HttpCore 2006-03-29 (HTTP GET 183446 bytes; 100,000 repetitions)
--------------------
oleg@dld810:~$ ab2 -k -n 100000
http://localhost:8888/tomcat-docs/changelog.html
This is ApacheBench, Version 2.0.41-dev <$Revision: 1.141 $> 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/

Server Software:        Jakarta-HttpComponents/1.1
Server Hostname:        localhost
Server Port:            8888

Document Path:          /tomcat-docs/changelog.html
Document Length:        183446 bytes

Concurrency Level:      1
Time taken for tests:   60.798438 seconds
Complete requests:      100000
Failed requests:        0
Write errors:           0
Keep-Alive requests:    100000
Total transferred:      1186530816 bytes
HTML transferred:       1164730816 bytes
Requests per second:    1644.78 [#/sec] (mean)
Time per request:       0.608 [ms] (mean)
Time per request:       0.608 [ms] (mean, across all concurrent
requests)
Transfer rate:          19058.40 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    0   0.1      0      40
Processing:     0    0   0.2      0      20
Waiting:        0    0   0.1      0      19
Total:          0    0   0.3      0      43



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