5 ms·
For the comparison you seem to be interested in choose the measurements where the programs are forced onto a single core http://shootout.alioth.debian.org/u32/
by igouy 17y ago
For the comparison you seem to be interested in choose the measurements where the programs are forced onto a single core
http://shootout.alioth.debian.org/u32/benchmark.php?test=all&lang=php&lang2=python http://shootout.alioth.debian.org/u32/benchmark.php?test=all...
- pvg 17y agoThe argument being made was that the PHP runtime is 4-5 times slower than Python and that PHP only looks as fast as it does because of the C libraries. This is simply untrue and the OP wasn't able to back it up. Cores don't come into it.
- igouy 17y agoThe Python mandelbrot program uses 4 cores the PHP mandelbrot program uses 1 - that's why Python seems so much faster on mandelbrot. The Python spectral-norm program uses 4 cores the PHP spectral-norm program uses 1 - that's why Python seems so much faster on spectral-norm. The Python binary-trees program uses 4 cores the PHP binary-trees program uses 1 - that's why Python seems so much faster on binary-trees.
- pvg 17y agoRight. Python is not 4-5 times faster than PHP. That was my point.