On July 8, 2015 10:12:44 AM GMT+02:00, "bit1...@163.com" <bit1...@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-unsubscr...@hc.apache.org For additional commands, e-mail: httpclient-users-h...@hc.apache.org