3 ms·
Note this is only in the interpreter You did read this part right?
by pyre 17y ago
Note this is only in the interpreter
You did read this part right?
- pvg 17y agohttp://shootout.alioth.debian.org/u32q/benchmark.php?test=all&lang=php&lang2=python http://shootout.alioth.debian.org/u32q/benchmark.php?test=al... Many of these are largely interpreter.
- igouy 17y agoFor 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.
- pbiggar 17y agoActually I was basing it off the Language ShootOut. Last time I looked through it properly, Python was 16x slower than C, and PHP was 70x slower. I wonder why its changed. PHP certainly hasn't gotten faster in the meantime.