5 ms·
General performance comparison. http://shootout.alioth.debian.org/u64q/which-programming-languages-are-fastest.php?calc=chart&python3=on&php=on http://shootout.
by zoowar 15y ago
General performance comparison. http://shootout.alioth.debian.org/u64q/which-programming-languages-are-fastest.php?calc=chart&python3=on&php=on http://shootout.alioth.debian.org/u64q/which-programming-lan...
- igouy 15y agoftfy http://shootout.alioth.debian.org/u64q/benchmark.php?test=all&lang=php&lang2=python3 http://shootout.alioth.debian.org/u64q/benchmark.php?test=al... From the "≈ CPU Load" we can see that: - regex-dna - the Python program was written for multi-core the PHP program wasn't - spectral-norm - the Python program was written for multi-core the PHP program wasn't - k-nucleotide - the Python program was written for multi-core the PHP program wasn't - mandelbrot - the Python program was written for multi-core the PHP program wasn't - binary-trees - the Python program was written for multi-core the PHP program wasn't So it would be better to compare the programs forced onto one core, and that shows the PHP programs compare well to the Python programs - http://shootout.alioth.debian.org/u64/benchmark.php?test=all&lang=php&lang2=python3 http://shootout.alioth.debian.org/u64/benchmark.php?test=all...
- cptskippy 15y ago>it would be better to compare the programs forced onto one core How is that fair? Python has true multi process capabilities where PHP does not. You can run Django and other web frameworks in multi process modes that would spread load out better utilizing system resources. This isn't true of PHP, from what limited knowledge I have. While they're comparable under a single process, PHP does not scale nearly as well as Python does.
- igouy 15y ago> How is that fair? What's not fair, is that I seem to have forgotten to investigate why pcntl_fork() stopped working. > PHP does not scale nearly as well as Python does Please share your measurements.
- xd 15y agoI don't understand why you felt the need to comment when you say yourself "from what limited knowledge I have". PHP and Python both have "true multi process capabilities". It's called forking. I think you are confusing forking with threading.