Salut Francois,<div><br></div><div>Excellent suggestion.  </div><div><br></div><div>Even  in the test that passed, 11 seconds is not really acceptable.  If i conduct a telnet localhost 80, sometimes it takes many seconds before showing you</div>
<div><br></div><div>Check out these results with curl.  Over 90 seconds of &#39;waiting&#39;</div><div><a href="http://screencast.com/t/g5uvshJY25Ty">http://screencast.com/t/g5uvshJY25Ty</a></div><div><br></div><div>You can see near the end of the video when I start and restart nginx and do a number of tests, some respond instantly, some take a while.</div>
<div><br></div><div>Results</div><div><br></div><div><b>Test #1</b></div><div><div>Benchmarking localhost (be patient)...apr_poll: The timeout specified has expired (70007)</div><div><br></div><div><b>Test #2</b></div><div>
<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">violet2:~# ab -k -n 100 -c 10 <a href="http://localhost/test.html">http://localhost/test.html</a></font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">This is ApacheBench, Version 2.3 &lt;$Revision: 655654 $&gt;</font></div>
<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">Copyright 1996 Adam Twiss, Zeus Technology Ltd, <a href="http://www.zeustech.net/">http://www.zeustech.net/</a></font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">Licensed to The Apache Software Foundation, <a href="http://www.apache.org/">http://www.apache.org/</a></font></div>
<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace"><br></font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">Benchmarking localhost (be patient).....done</font></div>
<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace"><br></font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace"><br></font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">Server Software:        nginx/0.8.15</font></div>
<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">Server Hostname:        localhost</font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">Server Port:            80</font></div>
<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace"><br></font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">Document Path:          /test.html</font></div><div>
<font class="Apple-style-span" face="&#39;courier new&#39;, monospace">Document Length:        17 bytes</font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace"><br></font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">Concurrency Level:      10</font></div>
<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">Time taken for tests:   0.015 seconds</font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">Complete requests:      100</font></div>
<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">Failed requests:        0</font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">Write errors:           0</font></div>
<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">Keep-Alive requests:    100</font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">Total transferred:      30400 bytes</font></div>
<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">HTML transferred:       1700 bytes</font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">Requests per second:    6544.50 [#/sec] (mean)</font></div>
<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">Time per request:       1.528 [ms] (mean)</font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">Time per request:       0.153 [ms] (mean, across all concurrent requests)</font></div>
<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">Transfer rate:          1942.90 [Kbytes/sec] received</font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace"><br>
</font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">Connection Times (ms)</font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">              min  mean[+/-sd] median   max</font></div>
<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">Connect:        0    0   0.1      0       0</font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">Processing:     0    1   3.1      0      11</font></div>
<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">Waiting:        0    1   3.1      0      11</font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">Total:          0    1   3.2      0      11</font></div>
<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace"><br></font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">Percentage of the requests served within a certain time (ms)</font></div>
<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">  50%      0</font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">  66%      1</font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">  75%      1</font></div>
<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">  80%      1</font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">  90%     11</font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">  95%     11</font></div>
<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">  98%     11</font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">  99%     11</font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace"> 100%     11 (longest request)</font></div>
<div><br></div><div><b>Test #3</b></div><div><div>Benchmarking localhost (be patient)...apr_poll: The timeout specified has expired (70007)</div></div></div></div><div><br></div><div>Best,</div><div>Khalid</div><div><br><div class="gmail_quote">
On Mon, Sep 21, 2009 at 1:54 AM, François Battail <span dir="ltr">&lt;<a href="mailto:fb@francois.battail.name">fb@francois.battail.name</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Le lundi 21 septembre 2009 à 01:20 -0700, Khalid Shaikh a écrit :<br>
<div class="im"><br>
&gt; Spoke too soon.<br>
&gt; 9 second response<br>
<br>
</div>Can you try:<br>
<br>
ab -k -n 100 -c 10 <a href="http://localhost/test.html" target="_blank">http://localhost/test.html</a><br>
<br>
(It&#39;s Apache Bench from Debian&#39;s apache2-utils package, it will give us<br>
a more precise idea of the timings)<br>
<br>
Best regards<br>
<br>
<br>
</blockquote></div><br></div>