title: Waiting times for php page
body: <p>I am debugging performance issue for my ajax application.</p>
  
  <p>Firefox developer tools shows around 3 seconds as Waiting time.</p>
  
  <p>If i try to measure php script by getrusage() 'ru_utime.tv_sec' and 'ru_utime.tv_usec', i get randomly 0.2 to 9 seconds at script beginning and difference between script beginning and end is around 0.07 seconds.</p>
  
  <p>So how do i interpret these results?
  Does it mean that php code itself run for 0.07 seconds and remaining time is for sql queries etc? (i really have many complicated queries in my script)</p>
  
  <p>Or does it mean that apache or php interpreter do something before executing actual php code?</p>
  
  <p>Or may it be not server fault, but ajax an jquery?</p>
  
  <p>debian. php version is 5.4, apache - 2.2, jquery 1.11.</p>
  
  <p>Upd:
  Sorry, i forgot to mention important information - i run multiple ajax requests from page. if i run one request separatelly, Waiting time is 0,6 second.</p>