Archive for the "Benchmark" Tag

Filed in: , , , ,
Posted On: 2006 / 06 / 01

I thought, and had been told, that using constants instead of variables in PHP was mostly a matter of speed : at run time, the engine replaces every occurrence of a constant with its hard-coded value, making code presumably faster than using variables that must be evaluated each time they are encountered. Or something like […][...] → Read more

Filed in: , , , ,
Posted On: 2006 / 05 / 23

PHP5 Benchmarks: for vs while, count vs sizeof, md5 vs sha1 and other speed comparisons like these for those who really need an extra millisecond of optimisation. I like this.[...] → Read more