The Computer Language
Benchmarks Game

PHP programs versus Python 3

by benchmark task performance

spectral-norm
secs KB gz cpu cpu load
PHP 110.18 14,136 1193 436.74 99% 99% 100% 99%
Python 3 282.36 47,144 437 1,119.57 99% 99% 99% 99%
k-nucleotide
secs KB gz cpu cpu load
PHP 41.46 246,972 1036 46.74 91% 13% 4% 6%
Python 3 83.25 163,092 1937 320.96 98% 96% 96% 97%
n-body
secs KB gz cpu cpu load
PHP 674.54 2,592 1082 674.38 0% 1% 1% 100%
Python 3 1,005.92 6,444 1228 1,005.65 100% 1% 0% 1%
regex-dna
secs KB gz cpu cpu load
PHP 10.00 152,084 832 29.02 64% 67% 65% 96%
Python 3 11.15 252,032 478 24.90 48% 40% 47% 89%
mandelbrot
secs KB gz cpu cpu load
PHP 280.48 107,708 863 1,119.48 100% 100% 100% 100%
Python 3 306.32 41,240 686 1,222.44 100% 100% 100% 100%
fannkuch-redux
secs KB gz cpu cpu load
PHP 630.28 10,516 1150 2,506.27 100% 99% 99% 100%
Python 3 638.70 44,820 944 2,512.66 96% 99% 99% 100%
pidigits
secs KB gz cpu cpu load
PHP 2.86 3,412 394 2.85 1% 100% 0% 1%
Python 3 2.74 8,432 335 2.74 100% 1% 1% 1%
reverse-complement
secs KB gz cpu cpu load
PHP 7.04 369,104 297 7.03 1% 1% 0% 100%
Python 3 3.92 262,588 800 5.69 24% 6% 45% 73%
fasta
secs KB gz cpu cpu load
PHP 118.76 2,592 1030 118.72 0% 100% 1% 1%
Python 3 56.91 2,483,536 1933 149.79 62% 77% 52% 78%
binary-trees
secs KB gz cpu cpu load
PHP 529.00 549,952 472 528.51 34% 66% 1% 1%
Python 3 136.58 478,168 596 510.34 93% 96% 96% 93%
fasta-redux
secs KB gz cpu cpu load
PHP 0.71 2,596 1110 0.71 3% 0% 99% 4%
  No program contribute your program
PHP

PHP 5.6.7 (cli) (built: Mar 25 2015 15:21:21)
Copyright (c) 1997-2015 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2015 Zend Technologies

Python 3

Python 3.5.0 (default, Sep 14 2015, 09:36:50) [GCC 4.9.2] on linux