I refined the log output with log4j, which makes the code much clean, but 
unfortunately...the problem is still there...



[email protected]
 
From: Oleg Kalnichevski
Date: 2015-07-08 16:52
To: HttpClient User Discussion; [email protected]; httpclient-users
Subject: Re: Re: httpclient4 is extremely slow than correpsoning code of 
HttpClient3
On July 8, 2015 10:12:44 AM GMT+02:00, "[email protected]" <[email protected]> 
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: [email protected]
For additional commands, e-mail: [email protected]
 

Reply via email to