hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Feist <dfe...@gmail.com>
Subject Re: Thread Contention (due to use of proxys) in HttpClient 4.3
Date Fri, 16 May 2014 23:02:40 GMT
>> For some reason the HttpClient built by HttpClientBuilder, even when
>> everything is turned is not only slower than minimalClient (to be
>> expected) but also slower than DefaultHttpClient in previous versions.
>>  Not a major difference, but definitely the inverse of what of whats
>> in the results you sent.
>>
>
> I am sorry I cannot reproduce it. I replaced HC in minimal configuration
> with this

With the configuration for 4.3.3 that you used i get:

  - Jetty SelectChannelConnector:
      32 core:  3.1 is 10% faster.   (CPU: 4.3.3-> 1470%, 3.1 -> 1780% )
      4 core:  4.3.3 is 5% faster.

  - Jetty BlockingChannelConnector
      32 core:  3.1 is 12.5% faster (CPU: 4.3.3 -> 1210%, 3.1 -> 1640%)
      4 core:  4.3.3 is 30% faster

(I ran them separately and not in same gradle run, to be completely
fair * I adjusted invocation count to ensure test ran for at least 1
minute)

Summary:
   1) 3.1 is slightly faster than 4.3.3 when there is no cpu
constraint.  When using the Jetty BlockingChannelConnector, this can
be seen more clearly.
   2)  When CPU is constrained 4.3.3 runs faster. Using
BlockingChannelConnector makes this much more significant.

Note:
While i didn't test minimalClient again, from earlier testing, this
behaviour seems to affect HTTPClientBuilder/InternalHttpClient but not
minimalClient.

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