The Computer Language
Benchmarks Game

PHP programs versus Python 3

by benchmark task performance

k-nucleotide
secs KB gz cpu cpu load
PHP 25.75 250,224 1036 25.72 0% 0% 0% 100%
Python 3 317.42 219,028 1937 317.16 0% 1% 1% 100%
spectral-norm
secs KB gz cpu cpu load
PHP 180.24 15,332 1135 180.18 1% 0% 0% 100%
Python 3 1,105.41 7,120 328 1,105.02 1% 0% 0% 100%
regex-dna
secs KB gz cpu cpu load
PHP 4.85 105,416 832 4.83 1% 100% 1% 100%
Python 3 25.11 249,088 478 24.98 1% 0% 1% 100%
binary-trees
secs KB gz cpu cpu load
PHP 174.79 1,137,816 483 174.64 1% 0% 0% 100%
Python 3 497.80 482,656 596 497.40 1% 1% 1% 100%
n-body
secs KB gz cpu cpu load
PHP 422.83 7,196 1082 422.71 1% 32% 68% 100%
Python 3 1,024.87 6,324 1228 1,024.54 1% 0% 1% 100%
fannkuch-redux
secs KB gz cpu cpu load
PHP 1,030.87 7,056 441 1,030.62 1% 13% 57% 100%
Python 3 2,464.08 44,564 944 2,463.20 1% 0% 0% 100%
mandelbrot
secs KB gz cpu cpu load
PHP 524.11 131,376 863 523.94 1% 60% 40% 100%
Python 3 1,209.01 40,500 686 1,208.52 1% 0% 1% 100%
fasta
secs KB gz cpu cpu load
PHP 60.65 7,192 1030 60.63 1% 100% 0% 100%
Python 3 122.25 6,508 977 122.19 1% 1% 1% 100%
reverse-complement
secs KB gz cpu cpu load
PHP 4.62 358,028 297 4.62 2% 1% 100% 100%
Python 3 5.54 262,360 800 5.53 1% 1% 1% 100%
pidigits
secs KB gz cpu cpu load
PHP 2.80 8,180 394 2.80 1% 2% 100% 100%
Python 3 2.74 8,468 335 2.73 0% 1% 1% 100%
fasta-redux
secs KB gz cpu cpu load
PHP 0.51 7,112 1110 0.51 6% 100% 0% 98%
  No program contribute your program
PHP

PHP 7.0.0 (cli) (built: Dec 3 2015 16:21:26) ( NTS )
Copyright (c) 1997-2015 The PHP Group
Zend Engine v3.0.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