title: Which is faster, plain HTML or stored HTML from database?
body: <p>I was wondering if it was faster if you had all your html in plain-text html file or in a PHP file which will load your html from database. </p>
  
  <p>In case one the client will ask the page which will be sent immediately without the need for database interaction. In case two PHP has to load data from database and then convert them to objects and then it will be filled in the html file and that will be sent back to the host.</p>
  
  <p>It looks like the first option is the fastest option. Mention that in both cases the dynamic HTML will be generated by PHP, which is also loaded through the database. </p>
  
  <p>I am making a testing environment where I can test this. I will test this myself and I will upload results when I have them.</p>
  
  <p>As far as I know Joomla loads the entire HTML document from database. Now when I want to make a CMS myself I want my webpages to load fast. In my opinion Joomla sucks and so my question remains:</p>
  
  <p>Which is faster plain html or stored html from database?</p>
  
  <p>I see that my question is generating a lot of emotions. I will add some more value to my question.</p>
  
  <ol>
  <li>Am I testing this myself:"Yes of-course, I am not a lazy basted which is not prepared to seek for answers myself"</li>
  <li>Then why are you asking:"I am interested in you opinion. It would be stupid to think that I can find all the answers by myself. Also there are a lot of programmers with the experience to know this so why don't ask"</li>
  <li>In all cases the HTML is managed by a CMS. The idea is that the cms has to be fast in a really hybrid way. So it does not matter if you have a small website or a big website, if you have a website with actual dynamic contents or content which will be the same for a couple of years. </li>
  <li>I see that in the comments people say that there is no performance issue or that it is so small it does not count. My question is:"Does it really not matter? Plain-text file or generating form database"</li>
  <li>Caching? Ok, I will take a look into caching. </li>
  </ol>
  
  <p>I have done some testing and this are the results. To me they occur strange and I can't make sense of it. I have used google chrome to store webpages of geensteil, tweakers.nl and stackoverflow (this page), google.com. Then I inspect the page with chromes inspect-tools and use the network button to see what I am loading. Then I copy the HTML and I put it into mysql myisam and I load it with PHP. I wrote down the results inside an excel file. </p>
  
  <p>These are my testing results:</p>
  
  <p><img src="https://i.imgur.com/fO5x3.png" alt="here"></p>