title: Performance benchmark: PHP Generated content VS. javascript and DOM over AJAX
body: <p>For the following pretty straightforward task: <strong>query a list of products from a DB and present it on a webpage,</strong>
  consider 2 setups:</p>
  
  <p><strong>Setup1</strong>: PHP script queries. All content is built on the server and the entire page is served back to the client.</p>
  
  <p><strong>Setup2</strong>: Static HTML "page skeleton" requesting content using AJAX. Received content is parsed on the client side using Javascript and rendered using innerHTML or similar.</p>
  
  <p>Of course the second setup only makes sense when you have pages, categories and tags for the client user to choose from.</p>
  
  <p>I need to <strong>compare</strong> these two, at least by means of:</p>
  
  <ul>
  <li>time it will take content to be served</li>
  <li>user experience (setup1 is delivered as a whole, setup2 is delivered in "two parts")</li>
  <li>scalability - how do the setups compare when I have 100,000 queries daily</li>
  </ul>
  
  <p>Any thoughts on the issue will be much appreciated.</p>