title: Requests per second on a asp.net website benchmarking
body: <p>I have a question regarding the "Number of Requests per second" for a web site. I started Apache bench mark AB recently to load/stress test and the results aren't encouraging.</p>
  
  <p>It shows 25 requests per second.
  This is a asp.net web site hosted on IIS 7.5. I enabled http compression, Gzip, output caching added for .aspx and .html (kernel and user enabled).</p>
  
  <p>here are the results from running a ab command like this 
  <strong>ab -n 1000 -c 100 <a href="http://localhost/Web1/Test.aspx" rel="nofollow">http://localhost/Web1/Test.aspx</a> <br/>
  Requests Per Second: 90.02[#sec(mean)]<br/>
  Time per request: 11.54(ms) --> this number is good i am assuming</strong></p>
  
  <p>More info on the Test.aspx is a simple html page with bootstrap css and the data is pulled using ajax.</p>
  
  <p>i wrote another html page with the exact same html as the aspx and this html also uses AJAX filling the data(the same function being called on both the aspx and html).</p>
  
  <p>When the tests were run against the html </p>
  
  <p><strong>ab -n 1000 -c 100 <a href="http://localhost/Web1/Test.html" rel="nofollow">http://localhost/Web1/Test.html</a><br/>
  Requests Per Second: 1569.86[#sec(mean)]<br/>
  Time per request: 0.637 (ms) --> pretty good</strong> </p>
  
  <p>If you can notice the difference between the html and aspx html is super fast as it only takes 0.637 comapared to 11.54 for aspx i.e 20x faster</p>
  
  <p>Moving the same files to the production and running the tests shows the following.</p>
  
  <p>--ASPX test--
  <strong>ab -n 1000 -c 100 -k http: //prod.server/Web1/Test.aspx<br/>
  Requests Per Second: 20.98[#sec(mean)]<br/>
  Time per request: 47.74 (ms) -->Ok but not  good</strong> <br/>
  Note: -k is added but still i get 200 odd failures</p>
  
  <p><strong>ab -n 1000 -c 100 http ://prod.server/Web1/Test.html<br/>
  Requests Per Second: 20.91[#sec(mean)]<br/>
  Time per request: 47.83 (ms) -->Ok but not  good</strong> 
  Note: -k is added but still i get 200 odd failures</p>
  
  <p>As you can see on the prod. server the results are pretty discouraging. </p>
  
  <ul>
  <li>only 20.91 requests per second</li>
  <li>the html and ASPX both have the same response time</li>
  </ul>
  
  <p>My question is i know that the localhost performs better but why the discrepancy between the html and aspx locally where as they perform the same on the production server. </p>
  
  <p>Does this mean that the production Server IIS or the network on the server is slow? </p>
  
  <p>Any help or explanation would be greatly appreciated.</p>
  
  <p>Thanks,
  Bob</p>