The Computer Language Benchmarks Game
http://shootout.alioth.debian.org/
Project for reviewing/updating php programs
1.63x speedup - from 4.56 sec to 2.8 sec
Changes:
- global variables are used for temporary values instead of arrays
- functions are inlined
- count of math operations is reduced
- functions return simple values instead of arrays
- output buffering is optimized
implementation based/ported from lua-5 version
1.31x speedup - from 59 min to 45 min
Changes:
- deep optimization of code - references, faster incrementors, avoiding double-counting of indexes
5.36x speedup - from 59 min to 11 min
Changes:
- algorithm is based on multicore Java 6 source code by Oleg Mazurov
- multi-core support for PHP is based on mandelbrot.php-3