hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Httpcomponents Wiki] Update of "HttpClient3vsHttpClient4vsHttpCore" by OlegKalnichevski
Date Sun, 21 Nov 2010 12:05:58 GMT
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=5&rev2=6

--------------------------------------------------

  
  and then execute {{{mvn test}}} command of the {{{httpclient-benchmark}}} module
  
- === Hardware specs of the system used to execute the benchmark ===
+ === Specs of the system used to execute the benchmark ===
  
  {{{
  CPU: Intel(R) Core(TM)2 Quad CPU    Q6600  @ 2.40GHz
@@ -21, +21 @@

  RAM MemTotal:  3353824 kB
  }}}
  
- == Results of HttpClient 3.1 vs HTTP JRE vs HttpCore 4.x (blocking I/O) vs HttpClient 4.x
vs Jetty 7.x (blocking I/O) ==
- 
- === Linux Ubuntu 9.10 / JRE 1.6 ===
- 
  {{{
+ Ubuntu Linux 10.04
+ 
- Linux ubuntu 2.6.31-19-generic #56-Ubuntu SMP Thu Jan 28 01:26:53 UTC 2010 i686 GNU/Linux
+ Linux ubuntu 2.6.32-25-generic #45-Ubuntu SMP Sat Oct 16 19:48:22 UTC 2010 i686 GNU/Linu
  }}}
  
  {{{
+ Sun JRE 1.6.0
+ 
  java version "1.6.0_18"
  Java(TM) SE Runtime Environment (build 1.6.0_18-b07)
  Java HotSpot(TM) Server VM (build 16.0-b13, mixed mode)
  }}}
  
+ === 500'000 requests / up to 10 concurrent connections ===
+ 
  {{{
  =================================
  HTTP agent: Apache HttpClient 3.1
  ---------------------------------
- 200000 GET requests
+ 500000 GET requests
  ---------------------------------
- Server Software:	Jetty(7.0.1.v20091125)
- 
- Document URI:		http://localhost:54406/rnd?c=2048
+ Document URI:		http://localhost:60284/rnd?c=2048
  Document Length:	2048 bytes
  
+ Concurrency level:	10
- Time taken for tests:	19.802 seconds
+ Time taken for tests:	21.164 seconds
+ Complete requests:	499999
+ Failed requests:	1
+ Content transferred:	1023997952 bytes
+ Requests per second:	23624.977 [#/sec] (mean)
+ Time per request:	0.042328086 [ms] (mean)
+ ---------------------------------
+ 500000 POST requests
+ ---------------------------------
+ Document URI:		http://localhost:60284/echo
+ Document Length:	2048 bytes
+ 
+ Concurrency level:	10
+ Time taken for tests:	20.038 seconds
- Complete requests:	200000
+ Complete requests:	500000
  Failed requests:	0
- Content transferred:	409600000 bytes
+ Content transferred:	1024000000 bytes
- Requests per second:	10099.99 [#/sec] (mean)
+ Requests per second:	24952.59 [#/sec] (mean)
- Time per request:	0.09901 [ms] (mean)
+ Time per request:	0.040076 [ms] (mean)
- ---------------------------------
- 200000 POST requests
- ---------------------------------
- Server Software:	Jetty(7.0.1.v20091125)
- 
- Document URI:		http://localhost:54406/echo
- Document Length:	2048 bytes
- 
- Time taken for tests:	20.454 seconds
- Complete requests:	200000
- Failed requests:	0
- Content transferred:	409600000 bytes
- Requests per second:	9778.038 [#/sec] (mean)
- Time per request:	0.10227 [ms] (mean)
  ---------------------------------
  =================================
  HTTP agent: JRE HTTP 1.6.0_18
  ---------------------------------
- 200000 GET requests
+ 500000 GET requests
  ---------------------------------
- Server Software:	Jetty(7.0.1.v20091125)
- 
- Document URI:		http://localhost:54406/rnd?c=2048
+ Document URI:		http://localhost:60284/rnd?c=2048
  Document Length:	2048 bytes
  
+ Concurrency level:	10
- Time taken for tests:	19.807 seconds
+ Time taken for tests:	16.47 seconds
+ Complete requests:	499999
+ Failed requests:	1
+ Content transferred:	1023997952 bytes
+ Requests per second:	30358.168 [#/sec] (mean)
+ Time per request:	0.032940067 [ms] (mean)
+ ---------------------------------
+ 500000 POST requests
+ ---------------------------------
+ Document URI:		http://localhost:60284/echo
+ Document Length:	2048 bytes
+ 
+ Concurrency level:	10
+ Time taken for tests:	20.535 seconds
- Complete requests:	200000
+ Complete requests:	500000
  Failed requests:	0
- Content transferred:	409600000 bytes
+ Content transferred:	1024000000 bytes
- Requests per second:	10097.44 [#/sec] (mean)
+ Requests per second:	24348.674 [#/sec] (mean)
- Time per request:	0.099035 [ms] (mean)
+ Time per request:	0.04107 [ms] (mean)
  ---------------------------------
+ =================================
+ HTTP agent: Apache HttpCore 4 (ver: 4.1-beta1)
+ ---------------------------------
- 200000 POST requests
+ 500000 GET requests
  ---------------------------------
- Server Software:	Jetty(7.0.1.v20091125)
- 
- Document URI:		http://localhost:54406/echo
+ Document URI:		http://localhost:60284/rnd?c=2048
  Document Length:	2048 bytes
  
+ Concurrency level:	10
- Time taken for tests:	22.738 seconds
+ Time taken for tests:	10.356 seconds
- Complete requests:	200000
+ Complete requests:	500000
  Failed requests:	0
- Content transferred:	409600000 bytes
+ Content transferred:	1024000000 bytes
- Requests per second:	8795.848 [#/sec] (mean)
+ Requests per second:	48281.19 [#/sec] (mean)
- Time per request:	0.11369 [ms] (mean)
+ Time per request:	0.020712 [ms] (mean)
  ---------------------------------
- =================================
- HTTP agent: Apache HttpCore 4 (ver: 4.1-alpha2-SNAPSHOT)
- ---------------------------------
- 200000 GET requests
+ 500000 POST requests
  ---------------------------------
- Server Software:	Jetty(7.0.1.v20091125)
- 
- Document URI:		http://localhost:54406/rnd?c=2048
+ Document URI:		http://localhost:60284/echo
  Document Length:	2048 bytes
  
+ Concurrency level:	10
- Time taken for tests:	13.339 seconds
+ Time taken for tests:	11.841 seconds
- Complete requests:	200000
+ Complete requests:	500000
  Failed requests:	0
- Content transferred:	409600000 bytes
+ Content transferred:	1024000000 bytes
- Requests per second:	14993.628 [#/sec] (mean)
+ Requests per second:	42226.164 [#/sec] (mean)
- Time per request:	0.066695 [ms] (mean)
+ Time per request:	0.023682 [ms] (mean)
  ---------------------------------
+ =================================
+ HTTP agent: Apache HttpClient 4 (ver: 4.1-beta1)
+ ---------------------------------
- 200000 POST requests
+ 500000 GET requests
  ---------------------------------
- Server Software:	Jetty(7.0.1.v20091125)
- 
- Document URI:		http://localhost:54406/echo
+ Document URI:		http://localhost:60284/rnd?c=2048
  Document Length:	2048 bytes
  
+ Concurrency level:	10
- Time taken for tests:	15.183 seconds
+ Time taken for tests:	13.441 seconds
- Complete requests:	200000
+ Complete requests:	500000
  Failed requests:	0
- Content transferred:	409600000 bytes
+ Content transferred:	1024000000 bytes
- Requests per second:	13172.628 [#/sec] (mean)
+ Requests per second:	37199.613 [#/sec] (mean)
- Time per request:	0.075915 [ms] (mean)
+ Time per request:	0.026882 [ms] (mean)
  ---------------------------------
- =================================
- HTTP agent: Apache HttpClient 4 (ver: 4.1-alpha2-SNAPSHOT)
- ---------------------------------
- 200000 GET requests
+ 500000 POST requests
  ---------------------------------
- Server Software:	Jetty(7.0.1.v20091125)
- 
- Document URI:		http://localhost:54406/rnd?c=2048
+ Document URI:		http://localhost:60284/echo
  Document Length:	2048 bytes
  
+ Concurrency level:	10
- Time taken for tests:	17.004 seconds
+ Time taken for tests:	16.345 seconds
- Complete requests:	200000
+ Complete requests:	500000
  Failed requests:	0
- Content transferred:	409600000 bytes
+ Content transferred:	1024000000 bytes
- Requests per second:	11761.938 [#/sec] (mean)
+ Requests per second:	30590.396 [#/sec] (mean)
- Time per request:	0.08502 [ms] (mean)
+ Time per request:	0.03269 [ms] (mean)
  ---------------------------------
+ =================================
+ HTTP agent: Jetty 7.2.0.v20101020
+ ---------------------------------
- 200000 POST requests
+ 500000 GET requests
  ---------------------------------
- Server Software:	Jetty(7.0.1.v20091125)
- 
- Document URI:		http://localhost:54406/echo
+ Document URI:		http://localhost:60284/rnd?c=2048
  Document Length:	2048 bytes
  
+ Concurrency level:	10
- Time taken for tests:	18.493 seconds
+ Time taken for tests:	50.058 seconds
- Complete requests:	200000
+ Complete requests:	500000
  Failed requests:	0
- Content transferred:	409600000 bytes
+ Content transferred:	1024000000 bytes
- Requests per second:	10814.903 [#/sec] (mean)
+ Requests per second:	9988.414 [#/sec] (mean)
- Time per request:	0.092465 [ms] (mean)
+ Time per request:	0.100116 [ms] (mean)
  ---------------------------------
- =================================
- HTTP agent: Jetty 7.0.1.v20091125
- ---------------------------------
- 200000 GET requests
+ 500000 POST requests
  ---------------------------------
- Server Software:	Jetty(7.0.1.v20091125)
- 
- Document URI:		http://localhost:54406/rnd?c=2048
+ Document URI:		http://localhost:60284/echo
  Document Length:	2048 bytes
  
+ Concurrency level:	10
- Time taken for tests:	22.116 seconds
+ Time taken for tests:	82.305 seconds
- Complete requests:	200000
+ Complete requests:	500000
  Failed requests:	0
- Content transferred:	409600000 bytes
+ Content transferred:	1024000000 bytes
+ Requests per second:	6074.965 [#/sec] (mean)
+ Time per request:	0.16461 [ms] (mean)
+ ---------------------------------
+ =================================
+ HTTP agent: Ning Async HTTP client 1.3
+ ---------------------------------
+ 500000 GET requests
+ ---------------------------------
+ Document URI:		http://localhost:60284/rnd?c=2048
+ Document Length:	2048 bytes
+ 
+ Concurrency level:	10
+ Time taken for tests:	57.608 seconds
+ Complete requests:	500000
+ Failed requests:	0
+ Content transferred:	1024000000 bytes
- Requests per second:	9043.227 [#/sec] (mean)
+ Requests per second:	8679.35 [#/sec] (mean)
- Time per request:	0.11058 [ms] (mean)
+ Time per request:	0.115216 [ms] (mean)
  ---------------------------------
- 200000 POST requests
+ 500000 POST requests
+ ---------------------------------
+ Document URI:		http://localhost:60284/echo
+ Document Length:	2048 bytes
  
- [The test did not complete after several minutes and was terminated]
+ Concurrency level:	10
+ Time taken for tests:	64.195 seconds
+ Complete requests:	500000
+ Failed requests:	0
+ Content transferred:	1024000000 bytes
+ Requests per second:	7788.7686 [#/sec] (mean)
+ Time per request:	0.12839 [ms] (mean)
+ ---------------------------------
  }}}
  
+ === 500'000 requests / up to 250 concurrent connections ===
- === Windows Vista / JRE 1.6 ===
- 
- {{{
- java version "1.6.0_18"
- Java(TM) SE Runtime Environment (build 1.6.0_18-b07)
- Java HotSpot(TM) Client VM (build 16.0-b13, mixed mode, sharing)
- }}}
  
  {{{
  =================================
  HTTP agent: Apache HttpClient 3.1
  ---------------------------------
- 200000 GET requests
+ 500000 GET requests
  ---------------------------------
- Server Software:	Jetty(7.0.1.v20091125)
- 
- Document URI:		http://localhost:49640/rnd?c=2048
+ Document URI:		http://localhost:57569/rnd?c=2048
  Document Length:	2048 bytes
  
+ Concurrency level:	250
+ Time taken for tests:	55.88 seconds
+ Complete requests:	499999
+ Failed requests:	1
+ Content transferred:	1023997952 bytes
+ Requests per second:	8947.728 [#/sec] (mean)
+ Time per request:	0.11176022 [ms] (mean)
+ ---------------------------------
+ 500000 POST requests
+ ---------------------------------
+ Document URI:		http://localhost:57569/echo
+ Document Length:	2048 bytes
+ 
+ Concurrency level:	250
- Time taken for tests:	44.74 seconds
+ Time taken for tests:	42.863 seconds
- Complete requests:	200000
+ Complete requests:	500000
  Failed requests:	0
- Content transferred:	409600000 bytes
+ Content transferred:	1024000000 bytes
- Requests per second:	4470.2725 [#/sec] (mean)
+ Requests per second:	11665.072 [#/sec] (mean)
- Time per request:	0.2237 [ms] (mean)
+ Time per request:	0.085726 [ms] (mean)
- ---------------------------------
- 200000 POST requests
- ---------------------------------
- Server Software:	Jetty(7.0.1.v20091125)
- 
- Document URI:		http://localhost:49640/echo
- Document Length:	2048 bytes
- 
- Time taken for tests:	42.058 seconds
- Complete requests:	200000
- Failed requests:	0
- Content transferred:	410744936 bytes
- Requests per second:	4755.338 [#/sec] (mean)
- Time per request:	0.21029 [ms] (mean)
  ---------------------------------
  =================================
  HTTP agent: JRE HTTP 1.6.0_18
  ---------------------------------
- 200000 GET requests
+ 500000 GET requests
  ---------------------------------
- Server Software:	Jetty(7.0.1.v20091125)
- 
- Document URI:		http://localhost:49640/rnd?c=2048
+ Document URI:		http://localhost:57569/rnd?c=2048
  Document Length:	2048 bytes
  
+ Concurrency level:	250
- Time taken for tests:	43.321 seconds
+ Time taken for tests:	52.698 seconds
- Complete requests:	200000
+ Complete requests:	500000
  Failed requests:	0
- Content transferred:	409600000 bytes
+ Content transferred:	1024000000 bytes
- Requests per second:	4616.6987 [#/sec] (mean)
+ Requests per second:	9488.025 [#/sec] (mean)
- Time per request:	0.216605 [ms] (mean)
+ Time per request:	0.105396 [ms] (mean)
  ---------------------------------
- 200000 POST requests
+ 500000 POST requests
  ---------------------------------
- Server Software:	Jetty(7.0.1.v20091125)
- 
- Document URI:		http://localhost:49640/echo
+ Document URI:		http://localhost:57569/echo
  Document Length:	2048 bytes
  
+ Concurrency level:	250
- Time taken for tests:	42.635 seconds
+ Time taken for tests:	57.146 seconds
- Complete requests:	200000
+ Complete requests:	500000
  Failed requests:	0
- Content transferred:	412422664 bytes
+ Content transferred:	1024000000 bytes
- Requests per second:	4690.982 [#/sec] (mean)
+ Requests per second:	8749.519 [#/sec] (mean)
- Time per request:	0.213175 [ms] (mean)
+ Time per request:	0.114292 [ms] (mean)
  ---------------------------------
  =================================
- HTTP agent: Apache HttpCore 4 (ver: 4.1-alpha2-SNAPSHOT)
+ HTTP agent: Apache HttpCore 4 (ver: 4.1-beta1)
  ---------------------------------
- 200000 GET requests
+ 500000 GET requests
  ---------------------------------
- Server Software:	Jetty(7.0.1.v20091125)
- 
- Document URI:		http://localhost:49640/rnd?c=2048
+ Document URI:		http://localhost:57569/rnd?c=2048
  Document Length:	2048 bytes
  
+ Concurrency level:	250
- Time taken for tests:	34.18 seconds
+ Time taken for tests:	25.344 seconds
- Complete requests:	200000
+ Complete requests:	500000
  Failed requests:	0
- Content transferred:	409600000 bytes
+ Content transferred:	1024000000 bytes
- Requests per second:	5851.375 [#/sec] (mean)
+ Requests per second:	19728.535 [#/sec] (mean)
- Time per request:	0.1709 [ms] (mean)
+ Time per request:	0.050688 [ms] (mean)
  ---------------------------------
- 200000 POST requests
+ 500000 POST requests
  ---------------------------------
- Server Software:	Jetty(7.0.1.v20091125)
- 
- Document URI:		http://localhost:49640/echo
+ Document URI:		http://localhost:57569/echo
  Document Length:	2048 bytes
  
+ Concurrency level:	250
- Time taken for tests:	30.685 seconds
+ Time taken for tests:	19.025 seconds
- Complete requests:	200000
+ Complete requests:	500000
  Failed requests:	0
- Content transferred:	410032512 bytes
+ Content transferred:	1024000000 bytes
- Requests per second:	6517.843 [#/sec] (mean)
+ Requests per second:	26281.209 [#/sec] (mean)
- Time per request:	0.153425 [ms] (mean)
+ Time per request:	0.03805 [ms] (mean)
  ---------------------------------
  =================================
- HTTP agent: Apache HttpClient 4 (ver: 4.1-alpha2-SNAPSHOT)
+ HTTP agent: Apache HttpClient 4 (ver: 4.1-beta1)
  ---------------------------------
- 200000 GET requests
+ 500000 GET requests
  ---------------------------------
- Server Software:	Jetty(7.0.1.v20091125)
- 
- Document URI:		http://localhost:49640/rnd?c=2048
+ Document URI:		http://localhost:57569/rnd?c=2048
  Document Length:	2048 bytes
  
+ Concurrency level:	250
- Time taken for tests:	43.805 seconds
+ Time taken for tests:	19.974 seconds
- Complete requests:	200000
+ Complete requests:	500000
  Failed requests:	0
- Content transferred:	409600000 bytes
+ Content transferred:	1024000000 bytes
- Requests per second:	4565.689 [#/sec] (mean)
+ Requests per second:	25032.541 [#/sec] (mean)
- Time per request:	0.219025 [ms] (mean)
+ Time per request:	0.039948 [ms] (mean)
  ---------------------------------
- 200000 POST requests
+ 500000 POST requests
  ---------------------------------
- Server Software:	Jetty(7.0.1.v20091125)
- 
- Document URI:		http://localhost:49640/echo
+ Document URI:		http://localhost:57569/echo
  Document Length:	2048 bytes
  
+ Concurrency level:	250
- Time taken for tests:	42.385 seconds
+ Time taken for tests:	17.533 seconds
- Complete requests:	200000
+ Complete requests:	500000
  Failed requests:	0
- Content transferred:	409846776 bytes
+ Content transferred:	1024000000 bytes
- Requests per second:	4718.651 [#/sec] (mean)
+ Requests per second:	28517.65 [#/sec] (mean)
- Time per request:	0.211925 [ms] (mean)
+ Time per request:	0.035066 [ms] (mean)
  ---------------------------------
  =================================
- HTTP agent: Jetty 7.0.1.v20091125
+ HTTP agent: Jetty 7.2.0.v20101020
  ---------------------------------
- 200000 GET requests
+ 500000 GET requests
  ---------------------------------
- Server Software:	Jetty(7.0.1.v20091125)
- 
- Document URI:		http://localhost:49640/rnd?c=2048
+ Document URI:		http://localhost:57569/rnd?c=2048
  Document Length:	2048 bytes
  
+ Concurrency level:	250
- Time taken for tests:	47.564 seconds
+ Time taken for tests:	19.181 seconds
- Complete requests:	200000
+ Complete requests:	500000
  Failed requests:	0
- Content transferred:	409600000 bytes
+ Content transferred:	1024000000 bytes
- Requests per second:	4204.861 [#/sec] (mean)
+ Requests per second:	26067.463 [#/sec] (mean)
- Time per request:	0.23782 [ms] (mean)
+ Time per request:	0.038362 [ms] (mean)
  ---------------------------------
- 200000 POST requests
+ 500000 POST requests
  ---------------------------------
- Server Software:	Jetty(7.0.1.v20091125)
- 
- Document URI:		http://localhost:49640/echo
+ Document URI:		http://localhost:57569/echo
  Document Length:	2048 bytes
  
+ Concurrency level:	250
- Time taken for tests:	45.115 seconds
+ Time taken for tests:	21.019 seconds
- Complete requests:	200000
+ Complete requests:	500000
  Failed requests:	0
- Content transferred:	410369976 bytes
+ Content transferred:	1024000000 bytes
+ Requests per second:	23788.002 [#/sec] (mean)
+ Time per request:	0.042038 [ms] (mean)
+ ---------------------------------
+ =================================
+ HTTP agent: Ning Async HTTP client 1.3
+ ---------------------------------
+ 500000 GET requests
+ ---------------------------------
+ Document URI:		http://localhost:57569/rnd?c=2048
+ Document Length:	2048 bytes
+ 
+ Concurrency level:	250
+ Time taken for tests:	57.973 seconds
+ Complete requests:	500000
+ Failed requests:	0
+ Content transferred:	1024000000 bytes
- Requests per second:	4433.115 [#/sec] (mean)
+ Requests per second:	8624.705 [#/sec] (mean)
+ Time per request:	0.115946 [ms] (mean)
+ ---------------------------------
+ 500000 POST requests
+ ---------------------------------
+ Document URI:		http://localhost:57569/echo
+ Document Length:	2048 bytes
+ 
+ Concurrency level:	250
+ Time taken for tests:	64.102 seconds
+ Complete requests:	500000
+ Failed requests:	0
+ Content transferred:	1024000000 bytes
+ Requests per second:	7800.069 [#/sec] (mean)
- Time per request:	0.225575 [ms] (mean)
+ Time per request:	0.128204 [ms] (mean)
  ---------------------------------
  }}}
  

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


Mime
View raw message