hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tony Anecito <adanec...@yahoo.com>
Subject Re: Slowness of 4.1
Date Thu, 03 Mar 2011 17:20:18 GMT
Hi,

Where can I find the client side code for this test? I think I found it once 
before and discovered the way the response times were calculated were incorrect.
What I saw indicated your test results were divideing the number of requests 
into the time it took for all of them to complete when the tests were run in 
parallel so it made it look like the requests were faster than they really were. 
It was like taking ten 100ms requests run in parallel and getting 10ms per 
request when in reality it was 100ms.

In either case I will see what if I can find again the client side code 
soemwhere and compare it to what I have unless you have a link to it.

Thanks,
-Tony



----- Original Message ----
From: Oleg Kalnichevski <olegk@apache.org>
To: HttpClient User Discussion <httpclient-users@hc.apache.org>
Sent: Thu, March 3, 2011 2:46:03 AM
Subject: Re: Slowness of 4.1

On Thu, 2011-03-03 at 01:38 -0800, Tony Anecito wrote:
> Hi All,
> 
> I downloaded httpclient 4.1 and noticed it is significantly slower than 3.1. I 

> even used the threadsafe connection manager hoping for better performance. I 
> used to get below 3msec and now it is above 150msec.
> Is keepalive used by default? If not where can I find an example that sets it 
> using either a scheme, connection manager httpclient instance or the httpget 
> object?
> 
> What kind of response time should I expect hitting a servlet with no code in 
>the 
>
> method on a 2.8Ghz 6 core AMD server?
> 
> Any ideas on what it might be? I used code sample from the site and it works 
> just very slow.
> 
> Thanks,
> -Tony
> 

HttpClient 4.1 is known to be comfortably faster than 3.1. There is
likely to be a problem with how you are measuring performance / response
time.

http://wiki.apache.org/HttpComponents/HttpClient3vsHttpClient4vsHttpCore 

Oleg



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


      

---------------------------------------------------------------------
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