« Build a Query Processor Class for Networking in PHP 5 | Main | Dependency injection in PHP5 »

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.

http://php5.phpmagazine.net/upload/2006/05/php5-benchmark-thumb.png
Bookmark this article at these sites
Post a comment





(Email will remain hidden)





Please enter the security code you see here




Related entries
Email to a friend
Email this article to:


Your email address:


Message (optional):