PHP5 Benchmark Benchmarked
Byster.net have benchmarked many issues related to PHP5 using version 5.0.5 and Celeron 2.0Mhz / 512Mb. The benchmark cover many issues such creating and reading arrays, reading file, parsing files, parsing var names, parse and find text, split text, count array size, creating object by reference, random number generator, and hash calculation. I find many issues on which I don't agree for example reading array foreach is faster than for, the benchmark show a for($i=0;$i<10000;$i++) {..}, but didn't mention how he choose the 10000 which should be the size of the array. Also comparing different fonctionnalities that don't return the same result are meaningless : file, file_get_contents and fread are very different functions that don't have the same usage so I'm not sure how the benchmark is made. Anyway I prefered seeing a comparaison with PHP4, better than making them separately also it would be better if the whole code used in benchmark is displayed so the results could be better interpreted.

Subscribe to PHP5 Magazine's feed