title: Slow response from asp.net web api
body: <p>I'm wondering if anyone has any as to why a response from a web api can be slow from the second it is requested to when it is returned. </p>
  
  <p>I thought it was the code within the action in the controller so I commented it out and I'm just returning ok but:</p>
  
  <ol>
  <li>When called from <code>Postman</code>, it still takes 2.05 secs (avg)</li>
  <li>When called from <code>IE</code>, it still takes 1.95 secs (avg)</li>
  </ol>
  
  <p>I thought it was because I was running in <code>IIS Express</code> but when deployed to IIS on another server, I'm getting very similar results. </p>
  
  <p>I've just tested the request time from another project (personal one) and to request and response and send back 1Mb of data, it take 0.47ms on average.</p>
  
  <p>Requests are made over http on my localhost.</p>
  
  <p>Any ideas what could be slowing it down like that? I don't understand how just returning Ok can take 2 seconds from the request to the response??</p>
  
  <p><strong>Update-1</strong></p>
  
  <p>Here are some additional details as requested:</p>
  
  <ul>
  <li>GET request</li>
  <li>Total time: 2.19s</li>
  <li>Size: 2.6kb</li>
  <li>Queuing: 1.56ms</li>
  <li>Stalled: 1.27ms</li>
  <li>Request Sent: 0.38ms</li>
  <li>Waiting (TTFB): 2.18s</li>
  <li>Content Download: 1.14ms</li>
  </ul>