PHP require vs include and time wasting


I have written about the futility of attempting to speed of applications by compiler options or small code level changes. They simply do not work. If you look at the PHP mailing list archives you will find countless thread arguing the merits and demerits of require vs include or echo vs print etc.

These arguments are just a waste of time. In this backdrop I decided to start writing an article with detailed statistics to prove this point. You will find the first part here..

In fact the first step of results were mildly suprising but then the first set of tests are not typical of what you might encounter in a real web application. The second set of tests on the other hand is a better match and the results as expected goes to show that there is little difference between require, include and the other 'file inclusion' functions of PHP.

comments powered by Disqus