Optimization – PHP Benchmarks October 15, 2010Posted by Tournas Dimitrios in PHP.
It is a fact that there are a million ways to accomplish the same task in PHP ( this is also truth for all programming languages ), but only a couple are truely ‘correct’ – as in significantly better for one reason or another. Out of all those reasons script efficiency and speed are the driving force behind all experienced programmers. That being said it’s hard to know what the right way to do things are. Sure there are 100 ways to do something but all but 2 or 3 of those take an obscene amount of time. Normally, during development, you won’t notice long load times because it’s not getting hammered by hundreds or thousands of users requesting the same page.
Visit this website The PHP Benchmark that visually shows how some methods are more effecient than others.