1
1
1nd1go2012-06-06 18:55:20
Apache HTTP Server
1nd1go, 2012-06-06 18:55:20

ApacheBench showing different results for parallel queries?

Hello.
Making requests for production with ab.
Upon request

ab -n100 -c1 "http://example.com/search?q=something"
gives out:
<pre>
Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:       24   25   0.7     24      29
Processing:   526  874 116.1    868    1263
Waiting:      313  608 105.1    596    1032
Total:        552  898 116.1    892    1288
</pre>

Upon request
ab -n100 -c3 &quot;http://example.com/search?q=something&quot;

<pre>
Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:       24   25   0.8     25      30
Processing:   898 1872 1065.6   1689    8114
Waiting:      654 1410 765.5   1299    7821
Total:        923 1897 1065.5   1714    8138
</pre>

The question is - why is there such a difference for such a small number of parallel threads, given that this is production, someone is already there and requests something, so the hypothetical struggle for the resource (if any) should already be at -c1.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
niko83, 2012-06-06
@niko83

where are requests made from, from home takchi? Try adding the -i "Use HEAD instead of GET" flag

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question