Dear Wiki user, You have subscribed to a wiki page or wiki category on "Httpcomponents Wiki" for change notification.
The "HttpClient3vsHttpClient4vsHttpCore" page has been changed by OlegKalnichevski: http://wiki.apache.org/HttpComponents/HttpClient3vsHttpClient4vsHttpCore?action=diff&rev1=9&rev2=10 === Benchmark source code === - In order to execute the benchmark locally install the latest snapshot of HttpClient from the Apache SVN repository and an optional module - {{{httpclient-benchmark}}} + {{{ + https://svn.apache.org/repos/asf/httpcomponents/benchmark/httpclient/ + }}} + + In order to execute run {{{mvn clean test}}} + + ==== Version used ==== {{{ - http://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk/httpclient-benchmark/ + URL: https://svn.apache.org/repos/asf/httpcomponents/benchmark/httpclient/branches/4.2.x + Repository Root: https://svn.apache.org/repos/asf + Repository UUID: 13f79535-47bb-0310-9956-ffa450edef68 + Revision: 1426227 }}} - - and then execute {{{mvn test}}} command of the {{{httpclient-benchmark}}} module === Specs of the system used to execute the benchmark === {{{ + CPU: Intel® Core™ i7-2635QM CPU @ 2.00GHz × 8 + RAM: 3.8 GiB - CPU: Intel(R) Core(TM) i3 CPU M 370 @ 2.40GHz - Processor cache size: 3072 KB - RAM MemTotal: 3410696 kB }}} {{{ - Ubuntu Linux 10.10 + Ubuntu Linux 12.10 - Linux ubuntu 2.6.35-24-generic #42-Ubuntu SMP Thu Dec 2 01:41:57 UTC 2010 i686 GNU/Linux + Linux ubuntu 3.5.0-21-generic #32-Ubuntu SMP Tue Dec 11 18:51:59 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux }}} {{{ Sun JRE 1.6.0 - java version "1.6.0_18" + java version "1.6.0_35" - Java(TM) SE Runtime Environment (build 1.6.0_18-b07) + Java(TM) SE Runtime Environment (build 1.6.0_35-b10) - Java HotSpot(TM) Server VM (build 16.0-b13, mixed mode) + Java HotSpot(TM) 64-Bit Server VM (build 20.10-b01, mixed mode) }}} === 500'000 requests / up to 20 concurrent connections === {{{ ================================= - HTTP agent: Apache HttpClient 3.1 + HTTP agent: JRE HTTP 1.6.0_35 --------------------------------- 500000 GET requests --------------------------------- - Document URI: http://localhost:40225/rnd?c=2048 + Document URI: http://localhost:60930/rnd?c=2048 Document Length: 2048 bytes Concurrency level: 20 - Time taken for tests: 30.921 seconds + Time taken for tests: 18.375 seconds Complete requests: 500000 Failed requests: 0 Content transferred: 1024000000 bytes - Requests per second: 16170.24 [#/sec] (mean) + Requests per second: 27210.885 [#/sec] (mean) --------------------------------- 500000 POST requests --------------------------------- - Document URI: http://localhost:40225/echo + Document URI: http://localhost:60930/echo Document Length: 2048 bytes Concurrency level: 20 + Time taken for tests: 60.914 seconds + Complete requests: 467481 + Failed requests: 32519 + Content transferred: 957401088 bytes + Requests per second: 7674.4424 [#/sec] (mean) + --------------------------------- + ================================= + HTTP agent: Apache HttpClient 4 (ver: 4.2.2) + --------------------------------- + 500000 GET requests + --------------------------------- + Document URI: http://localhost:60930/rnd?c=2048 + Document Length: 2048 bytes + + Concurrency level: 20 - Time taken for tests: 29.782 seconds + Time taken for tests: 12.862 seconds Complete requests: 500000 Failed requests: 0 Content transferred: 1024000000 bytes - Requests per second: 16788.664 [#/sec] (mean) + Requests per second: 38874.203 [#/sec] (mean) + --------------------------------- + 500000 POST requests + --------------------------------- + Document URI: http://localhost:60930/echo + Document Length: 2048 bytes + + Concurrency level: 20 + Time taken for tests: 15.275 seconds + Complete requests: 500000 + Failed requests: 0 + Content transferred: 1024000000 bytes + Requests per second: 32733.225 [#/sec] (mean) --------------------------------- ================================= - HTTP agent: JRE HTTP 1.6.0_18 + HTTP agent: Ning async HTTP client 1.7.4 --------------------------------- 500000 GET requests --------------------------------- - Document URI: http://localhost:40225/rnd?c=2048 + Document URI: http://localhost:60930/rnd?c=2048 Document Length: 2048 bytes Concurrency level: 20 - Time taken for tests: 23.036 seconds + Time taken for tests: 25.123 seconds Complete requests: 500000 Failed requests: 0 Content transferred: 1024000000 bytes - Requests per second: 21705.158 [#/sec] (mean) + Requests per second: 19902.082 [#/sec] (mean) --------------------------------- 500000 POST requests --------------------------------- - Document URI: http://localhost:40225/echo + Document URI: http://localhost:60930/echo Document Length: 2048 bytes Concurrency level: 20 - Time taken for tests: 29.616 seconds + Time taken for tests: 48.01 seconds Complete requests: 500000 Failed requests: 0 Content transferred: 1024000000 bytes - Requests per second: 16882.766 [#/sec] (mean) + Requests per second: 10414.497 [#/sec] (mean) --------------------------------- - ================================= - HTTP agent: Apache HttpCore 4 (ver: 4.1) - --------------------------------- - 500000 GET requests - --------------------------------- - Document URI: http://localhost:40225/rnd?c=2048 - Document Length: 2048 bytes - Concurrency level: 20 - Time taken for tests: 15.904 seconds - Complete requests: 500000 - Failed requests: 0 - Content transferred: 1024000000 bytes - Requests per second: 31438.63 [#/sec] (mean) - --------------------------------- - 500000 POST requests - --------------------------------- - Document URI: http://localhost:40225/echo - Document Length: 2048 bytes - - Concurrency level: 20 - Time taken for tests: 20.63 seconds - Complete requests: 500000 - Failed requests: 0 - Content transferred: 1024000000 bytes - Requests per second: 24236.549 [#/sec] (mean) - --------------------------------- - ================================= - HTTP agent: Apache HttpClient 4 (ver: 4.2-alpha1-SNAPSHOT) - --------------------------------- - 500000 GET requests - --------------------------------- - Document URI: http://localhost:40225/rnd?c=2048 - Document Length: 2048 bytes - - Concurrency level: 20 - Time taken for tests: 20.773 seconds - Complete requests: 500000 - Failed requests: 0 - Content transferred: 1024000000 bytes - Requests per second: 24069.705 [#/sec] (mean) - --------------------------------- - 500000 POST requests - --------------------------------- - Document URI: http://localhost:40225/echo - Document Length: 2048 bytes - - Concurrency level: 20 - Time taken for tests: 25.088 seconds - Complete requests: 500000 - Failed requests: 0 - Content transferred: 1024000000 bytes - Requests per second: 19929.848 [#/sec] (mean) - --------------------------------- - ================================= - HTTP agent: Jetty 7.3.1.v20110307 - --------------------------------- - 500000 GET requests - --------------------------------- - Document URI: http://localhost:40225/rnd?c=2048 - Document Length: 2048 bytes - - Concurrency level: 20 - Time taken for tests: 28.205 seconds - Complete requests: 500000 - Failed requests: 0 - Content transferred: 1024000000 bytes - Requests per second: 17727.354 [#/sec] (mean) - --------------------------------- - 500000 POST requests - --------------------------------- - Document URI: http://localhost:40225/echo - Document Length: 2048 bytes - - Concurrency level: 20 - Time taken for tests: 28.045 seconds - Complete requests: 500000 - Failed requests: 0 - Content transferred: 1024000000 bytes - Requests per second: 17828.49 [#/sec] (mean) - --------------------------------- - ================================= - HTTP agent: Ning async HTTP client 1.5.0 - --------------------------------- - 500000 GET requests - --------------------------------- - Document URI: http://localhost:40225/rnd?c=2048 - Document Length: 2048 bytes - - Concurrency level: 20 - Time taken for tests: 46.451 seconds - Complete requests: 500000 - Failed requests: 0 - Content transferred: 1024000000 bytes - Requests per second: 10764.031 [#/sec] (mean) - --------------------------------- - 500000 POST requests - --------------------------------- - Document URI: http://localhost:40225/echo - Document Length: 2048 bytes - - Concurrency level: 20 - Time taken for tests: 49.57 seconds - Complete requests: 500000 - Failed requests: 0 - Content transferred: 1024000000 bytes - Requests per second: 10086.746 [#/sec] (mean) - --------------------------------- }}} - === 500'000 requests / up to 250 concurrent connections === - - {{{ - ================================= - HTTP agent: Apache HttpClient 3.1 - --------------------------------- - 500000 GET requests - --------------------------------- - Document URI: http://localhost:35128/rnd?c=2048 - Document Length: 2048 bytes - - Concurrency level: 250 - Time taken for tests: 61.06 seconds - Complete requests: 500000 - Failed requests: 0 - Content transferred: 1024000000 bytes - Requests per second: 8188.6665 [#/sec] (mean) - --------------------------------- - 500000 POST requests - --------------------------------- - Document URI: http://localhost:35128/echo - Document Length: 2048 bytes - - Concurrency level: 250 - Time taken for tests: 51.057 seconds - Complete requests: 500000 - Failed requests: 0 - Content transferred: 1024000000 bytes - Requests per second: 9792.977 [#/sec] (mean) - --------------------------------- - ================================= - HTTP agent: JRE HTTP 1.6.0_18 - --------------------------------- - 500000 GET requests - --------------------------------- - Document URI: http://localhost:35128/rnd?c=2048 - Document Length: 2048 bytes - - Concurrency level: 250 - Time taken for tests: 34.611 seconds - Complete requests: 500000 - Failed requests: 0 - Content transferred: 1024000000 bytes - Requests per second: 14446.274 [#/sec] (mean) - --------------------------------- - 500000 POST requests - --------------------------------- - Document URI: http://localhost:35128/echo - Document Length: 2048 bytes - - Concurrency level: 250 - Time taken for tests: 34.823 seconds - Complete requests: 500000 - Failed requests: 0 - Content transferred: 1024000000 bytes - Requests per second: 14358.325 [#/sec] (mean) - --------------------------------- - ================================= - HTTP agent: Apache HttpCore 4 (ver: 4.1) - --------------------------------- - 500000 GET requests - --------------------------------- - Document URI: http://localhost:35128/rnd?c=2048 - Document Length: 2048 bytes - - Concurrency level: 250 - Time taken for tests: 25.373 seconds - Complete requests: 500000 - Failed requests: 0 - Content transferred: 1024000000 bytes - Requests per second: 19705.988 [#/sec] (mean) - --------------------------------- - 500000 POST requests - --------------------------------- - Document URI: http://localhost:35128/echo - Document Length: 2048 bytes - - Concurrency level: 250 - Time taken for tests: 28.066 seconds - Complete requests: 500000 - Failed requests: 0 - Content transferred: 1024000000 bytes - Requests per second: 17815.15 [#/sec] (mean) - --------------------------------- - ================================= - HTTP agent: Apache HttpClient 4 (ver: 4.2-alpha1-SNAPSHOT) - --------------------------------- - 500000 GET requests - --------------------------------- - Document URI: http://localhost:35128/rnd?c=2048 - Document Length: 2048 bytes - - Concurrency level: 250 - Time taken for tests: 23.068 seconds - Complete requests: 500000 - Failed requests: 0 - Content transferred: 1024000000 bytes - Requests per second: 21675.047 [#/sec] (mean) - --------------------------------- - 500000 POST requests - --------------------------------- - Document URI: http://localhost:35128/echo - Document Length: 2048 bytes - - Concurrency level: 250 - Time taken for tests: 27.366 seconds - Complete requests: 500000 - Failed requests: 0 - Content transferred: 1024000000 bytes - Requests per second: 18270.848 [#/sec] (mean) - --------------------------------- - ================================= - HTTP agent: Jetty 7.3.1.v20110307 - --------------------------------- - 500000 GET requests - --------------------------------- - Document URI: http://localhost:35128/rnd?c=2048 - Document Length: 2048 bytes - - Concurrency level: 250 - Time taken for tests: 23.919 seconds - Complete requests: 500000 - Failed requests: 0 - Content transferred: 1024000000 bytes - Requests per second: 20903.883 [#/sec] (mean) - --------------------------------- - 500000 POST requests - --------------------------------- - Document URI: http://localhost:35128/echo - Document Length: 2048 bytes - - Concurrency level: 250 - Time taken for tests: 27.397 seconds - Complete requests: 500000 - Failed requests: 0 - Content transferred: 1024000000 bytes - Requests per second: 18250.174 [#/sec] (mean) - --------------------------------- - ================================= - HTTP agent: Ning async HTTP client 1.5.0 - --------------------------------- - 500000 GET requests - --------------------------------- - Document URI: http://localhost:35128/rnd?c=2048 - Document Length: 2048 bytes - - Concurrency level: 250 - Time taken for tests: 42.94 seconds - Complete requests: 500000 - Failed requests: 0 - Content transferred: 1024000000 bytes - Requests per second: 11644.155 [#/sec] (mean) - --------------------------------- - 500000 POST requests - --------------------------------- - Document URI: http://localhost:35128/echo - Document Length: 2048 bytes - - Concurrency level: 250 - Time taken for tests: 49.779 seconds - Complete requests: 500000 - Failed requests: 0 - Content transferred: 1024000000 bytes - Requests per second: 10044.396 [#/sec] (mean) - --------------------------------- - }}} - --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
