You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by Apache Wiki <wi...@apache.org> on 2013/04/11 11:28:22 UTC
[Httpcomponents Wiki] Update of "HttpClient3vsHttpClient4vsHttpCore" by OlegKalnichevski
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=10&rev2=11
- = Client side HTTP performance benchmarks =
+ = Client side HTTP micro-benchmark =
=== Benchmark source code ===
{{{
- https://svn.apache.org/repos/asf/httpcomponents/benchmark/httpclient/
+ https://svn.apache.org/repos/asf/httpcomponents/benchmark/httpclient/trunk/
}}}
+ === Hardware specs of the system used to execute the benchmark ===
- In order to execute run {{{mvn clean test}}}
-
- ==== Version used ====
{{{
+ Intel(R) Core(TM) i7-3517U CPU @ 1.90GHz
+ Processor cache size: 4096 KB
+ RAM MemTotal: 3933112 kB
- 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
}}}
- === Specs of the system used to execute the benchmark ===
+ === Components versions ===
+
+ * Beanchmark revision {{{r1466810}}}
+
+ * !HttpClient: {{{4.3-BETA1}}}
+
+ * Jetty: {{{8.1.7.v20120910}}}
+
+ * Ning AHC: {{{1.7.12}}}
+
+ == Benchmark results ==
{{{
+ Linux ubuntu 3.5.0-26-generic #42-Ubuntu SMP Fri Mar 8 23:18:20 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
- CPU: Intel® Core™ i7-2635QM CPU @ 2.00GHz × 8
- RAM: 3.8 GiB
}}}
{{{
- Ubuntu Linux 12.10
-
- 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
+ java version "1.7.0_13"
+ Java(TM) SE Runtime Environment (build 1.7.0_13-b20)
+ Java HotSpot(TM) 64-Bit Server VM (build 23.7-b01, mixed mode)
}}}
- {{{
- Sun JRE 1.6.0
-
- java version "1.6.0_35"
- Java(TM) SE Runtime Environment (build 1.6.0_35-b10)
- Java HotSpot(TM) 64-Bit Server VM (build 20.10-b01, mixed mode)
- }}}
-
- === 500'000 requests / up to 20 concurrent connections ===
+ === 1'000'000 requests / up to 50 concurrent connections ===
{{{
=================================
- HTTP agent: JRE HTTP 1.6.0_35
+ HTTP agent: JRE HTTP 1.7.0_13
---------------------------------
- 500000 GET requests
+ 1000000 POST requests
---------------------------------
- Document URI: http://localhost:60930/rnd?c=2048
+ Document URI: http://localhost:40966/echo
Document Length: 2048 bytes
- Concurrency level: 20
+ Concurrency level: 50
- Time taken for tests: 18.375 seconds
+ Time taken for tests: 92.708 seconds
- Complete requests: 500000
+ Complete requests: 979979
- Failed requests: 0
+ Failed requests: 20021
- Content transferred: 1024000000 bytes
+ Content transferred: 2006996992 bytes
- Requests per second: 27210.885 [#/sec] (mean)
+ Requests per second: 10570.598 [#/sec] (mean)
---------------------------------
- 500000 POST requests
+ =================================
+ HTTP agent: Apache HttpClient 4 (ver: 4.3-beta1)
---------------------------------
+ 1000000 POST requests
+ ---------------------------------
- Document URI: http://localhost:60930/echo
+ Document URI: http://localhost:40966/echo
Document Length: 2048 bytes
- Concurrency level: 20
+ Concurrency level: 50
- Time taken for tests: 60.914 seconds
+ Time taken for tests: 32.096 seconds
- Complete requests: 467481
+ Complete requests: 1000000
- Failed requests: 32519
+ Failed requests: 0
- Content transferred: 957401088 bytes
+ Content transferred: 2048000000 bytes
- Requests per second: 7674.4424 [#/sec] (mean)
+ Requests per second: 31156.53 [#/sec] (mean)
---------------------------------
=================================
- HTTP agent: Apache HttpClient 4 (ver: 4.2.2)
+ HTTP agent: Jetty 8.1.7.v20120910
---------------------------------
- 500000 GET requests
+ Test did not complete under 3 minutes
---------------------------------
+ =================================
+ HTTP agent: Ning async HTTP client 1.7.12
+ ---------------------------------
+ 1000000 POST requests
+ ---------------------------------
- Document URI: http://localhost:60930/rnd?c=2048
+ Document URI: http://localhost:40966/echo
Document Length: 2048 bytes
- Concurrency level: 20
+ Concurrency level: 50
- Time taken for tests: 12.862 seconds
+ Time taken for tests: 50.403 seconds
- Complete requests: 500000
+ Complete requests: 1000000
Failed requests: 0
- Content transferred: 1024000000 bytes
+ Content transferred: 2048000000 bytes
- 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: Ning async HTTP client 1.7.4
- ---------------------------------
- 500000 GET requests
- ---------------------------------
- Document URI: http://localhost:60930/rnd?c=2048
- Document Length: 2048 bytes
-
- Concurrency level: 20
- Time taken for tests: 25.123 seconds
- Complete requests: 500000
- Failed requests: 0
- Content transferred: 1024000000 bytes
- Requests per second: 19902.082 [#/sec] (mean)
+ Requests per second: 19840.09 [#/sec] (mean)
- ---------------------------------
- 500000 POST requests
- ---------------------------------
- Document URI: http://localhost:60930/echo
- Document Length: 2048 bytes
-
- Concurrency level: 20
- Time taken for tests: 48.01 seconds
- Complete requests: 500000
- Failed requests: 0
- Content transferred: 1024000000 bytes
- Requests per second: 10414.497 [#/sec] (mean)
---------------------------------
}}}
+ === 100'000 requests / up to 50 concurrent connections (large message body) ===
+
+ {{{
+ =================================
+ HTTP agent: JRE HTTP 1.7.0_13
+ ---------------------------------
+ 100000 POST requests
+ ---------------------------------
+ Document URI: http://localhost:60250/echo
+ Document Length: 356048 bytes
+
+ Concurrency level: 50
+ Time taken for tests: 38.596 seconds
+ Complete requests: 100000
+ Failed requests: 0
+ Content transferred: 35598696240 bytes
+ Requests per second: 2590.9421 [#/sec] (mean)
+ ---------------------------------
+ =================================
+ HTTP agent: Apache HttpClient 4 (ver: 4.3-beta1)
+ ---------------------------------
+ 100000 POST requests
+ ---------------------------------
+ Document URI: http://localhost:60250/echo
+ Document Length: 357392 bytes
+
+ Concurrency level: 50
+ Time taken for tests: 31.388 seconds
+ Complete requests: 100000
+ Failed requests: 0
+ Content transferred: 35679003264 bytes
+ Requests per second: 3185.931 [#/sec] (mean)
+ ---------------------------------
+ =================================
+ HTTP agent: Jetty 8.1.7.v20120910
+ ---------------------------------
+ Test did not complete under 3 minutes
+ ---------------------------------
+ =================================
+ HTTP agent: Ning async HTTP client 1.7.12
+ ---------------------------------
+ 100000 POST requests
+ ---------------------------------
+ Document URI: http://localhost:60250/echo
+ Document Length: 358384 bytes
+
+ Concurrency level: 50
+ Time taken for tests: 36.13 seconds
+ Complete requests: 64355
+ Failed requests: 35645
+ Content transferred: 23042402480 bytes
+ Requests per second: 1781.2067 [#/sec] (mean)
+ ---------------------------------
+ }}}
+
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org