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 Wed, 14 May 2014 18:41:11 GMT
> I re-ran the benchmark (r1594594) on my computer and unsurprisingly (for
> me) HC 4.3 comfortably outperformed HC 3.1.
>
> Theories are welcome.

Really don't know.  Current theory is that  with 32 core machine
contention somehow isn't an issue.  Currently re-running on dual-core
machine, I'll update spreadsheets with results in a separate tab.

> PS: I'll work on dynamic proxy removal this weekend but you are welcome
> to the lead if you are so inclined

Not sure I'd rush to do this, as so far there isn't an proof that it's
an issue.  Something is making 4.3 slower than 4.2 when not using
minimal client (even with everything turned off), but it not the
proxies as those are used with minimal client too.

Let's re-asses with results from 2-core machine..

Dan


>
> ---
> oleg@ubuntu:~/src/apache.org/httpcomponents/httpclient-benchmark$ gr -q
> benchmark
> =================================
> HTTP agent: Apache HttpClient 3.1
> ---------------------------------
> 1000000 POST requests
> ---------------------------------
> Document URI:           http://localhost:53796/echo
> Document Length:        2048 bytes
>
> Concurrency level:      50
> Time taken for tests:   64.625 seconds
> Complete requests:      1000000
> Failed requests:        0
> Content transferred:    2048000000 bytes
> Requests per second:    15473.888 [#/sec] (mean)
> ---------------------------------
> =================================
> HTTP agent: Apache HttpClient (ver: 4.3.3)
> ---------------------------------
> 1000000 POST requests
> ---------------------------------
> Document URI:           http://localhost:47900/echo
> Document Length:        2048 bytes
>
> Concurrency level:      50
> Time taken for tests:   55.837 seconds
> Complete requests:      1000000
> Failed requests:        0
> Content transferred:    2048000000 bytes
> Requests per second:    17909.271 [#/sec] (mean)
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
> For additional commands, e-mail: 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