[ 
https://issues.apache.org/jira/browse/HTTPCLIENT-925?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12842391#action_12842391
 ] 

Oleg Kalnichevski commented on HTTPCLIENT-925:
----------------------------------------------

> They are absolutely pointless for the absolute values, but are not so much 
> pointless for side-by-side comparisons 
> (when compared stacks are run at the same time.
> 
> In this case I have run each test many times, looping a pair 
> (TestHttpClient3, TestHttpClient4). Results were consistent.. 
> So some real difference likely to exists.

Even if you disregard such variable factors as network traffic and load on the 
target system by other agents, the simple fact that you are executing thousand 
requests against a high profile site in a tight loop from the same IP is quite 
likely to trigger some kind of DoS defence mechanism further rendering the 
results inaccurate.

> and it is the most interesting part - what is so different in requests 
> created by 4.0.1 and 3.1.

User-Agent header

Oleg

> HttpClient 4.0.1 is approx. 3 time slower then older 3.1 when works against 
> www.google.com
> ------------------------------------------------------------------------------------------
>
>                 Key: HTTPCLIENT-925
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-925
>             Project: HttpComponents HttpClient
>          Issue Type: Improvement
>            Reporter: Oleksandr Alesinskyy
>            Priority: Minor
>
> I have tried  benchmarks from httpclient-benchmark - results are some what 
> funny - while for most tried sites 4.0.1 is marginally faster then 3.1, for a 
> couple of sites it is significantly slower, the most noticeable for 
> www.google.com, test were repeated multiple times, here are sample output 
> from 4.0.1 and 3..1  
> *4.0.1*
> Server Software:      gws
> Document URI:         http://www.google.com
> Document Length:      8459 bytes
> Time taken for tests: 3.952 seconds
> Complete requests:    10
> Failed requests:      0
> Content transferred:  84524 bytes
> Requests per second:  2.5303645 [#/sec] (mean)
> Time per request:     395.2 [ms] (mean)
> *3.1*
> Server Software:      gws
> Document URI:         http://www.google.com
> Document Length:      6847 bytes
> Time taken for tests: 1.354 seconds
> Complete requests:    10
> Failed requests:      0
> Content transferred:  68488 bytes
> Requests per second:  7.3855247 [#/sec] (mean)
> Time per request:     135.4 [ms] (mean)
> It is interesting, why.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@hc.apache.org
For additional commands, e-mail: dev-h...@hc.apache.org

Reply via email to