hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oleg Kalnichevski <o...@ok2consulting.com>
Subject Re: Re: httpclient4 is extremely slow than correpsoning code of HttpClient3
Date Wed, 08 Jul 2015 08:52:41 GMT
On July 8, 2015 10:12:44 AM GMT+02:00, "bit1129@163.com" <bit1129@163.com> wrote:
>Thanks Stefan and Oleg.
>1. I refined the code to use single CloseableHttpClient object in
>HttpClientManager class,  but unfortunately, the problem is still
>there. Some sample out is as follows:
>2. As with the log in the test, it would be helpful to use log4j. 
>Since it doesn't affect the response time of requests, so I will leave
>it there as it is for now.
>
>
>As you can see, there are 7 seconds, 10 seconds request there. I never
>have this with HttpClientUtil#get. If I don't set the pool connection
>manager to the CloseableHttpClient , then the response time will make
>sense.
>
What you do is enormously silly. Your test code writes stuff to the file system and you want
to use it as a benchmark for performance of http transport?

In out tests HttpClient 4.x is comfortably faster (~30%) than HttpClient 3.x or any other
http client I tested against.

Oleg
-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.

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


Mime
View raw message