The Computer Language
Benchmarks Game

all PHP programs & measurements

PHP 7.0.6 (cli) (built: May 4 2016 12:35:58) ( NTS )
Copyright (c) 1997-2016 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies

source secs N mem gz cpu cpu load
binary-trees  #2 0.38  12 660 472 0.36 0% 0% 3% 100%
binary-trees  #2 9.39  16 28,028 472 9.38 1% 0% 1% 100%
binary-trees  #2 238.44  20 353,760 472 238.24 1% 1% 1% 100%
source secs N mem gz cpu cpu load
binary-trees  #3 0.26  12 652 483 0.24 0% 8% 4% 96%
binary-trees  #3 6.81  16 76,792 483 6.80 3% 1% 2% 100%
binary-trees  #3 164.95  20 1,137,716 483 164.80 1% 1% 1% 100%
source secs N mem gz cpu cpu load
binary-trees  0.39  12 628 504 0.39 0% 0% 3% 100%
binary-trees  10.10  16 27,980 504 10.09 1% 0% 1% 100%
binary-trees  254.41  20 353,656 504 254.20 1% 1% 1% 100%
source secs N mem gz cpu cpu load
binary-trees  #4 0.49  12 ? 1161 ? 2% 0% 0% 100%
binary-trees  #4 7.28  16 ? 1161 ? 2% 1% 1% 100%
binary-trees  #4 174.24  20 ? 1161 ? 4% 4% 3% 100%
source secs N mem gz cpu cpu load
fannkuch-redux  #3 6.59  10 26,216 1150 6.57 1% 1% 1% 100%
fannkuch-redux  #3 84.59  11 26,072 1150 84.55 1% 0% 1% 100%
fannkuch-redux  #3 1,189.31  12 26,260 1150 1,188.98 1% 1% 1% 100%
source secs N mem gz cpu cpu load
fannkuch-redux  9.49  10 7,236 482 9.49 1% 1% 1% 100%
fannkuch-redux  121.24  11 7,128 482 121.20 1% 1% 1% 100%
fannkuch-redux  1,666.38  12 7,132 482 1,665.95 1% 1% 1% 100%
source secs N mem gz cpu cpu load
fannkuch-redux  #2 6.20  10 6,964 441 6.18 1% 0% 1% 100%
fannkuch-redux  #2 80.31  11 7,024 441 80.29 1% 1% 1% 100%
fannkuch-redux  #2 1,135.14  12 7,008 441 1,134.86 1% 1% 1% 100%
source secs N mem gz cpu cpu load
fasta  #2 1.35  250,000 7,192 1006 1.34 1% 1% 3% 100%
fasta  #2 12.97  2,500,000 7,080 1006 12.96 1% 0% 1% 100%
fasta  #2 129.04  25,000,000 7,132 1006 128.98 1% 0% 0% 100%
source secs N mem gz cpu cpu load
fasta  #3 0.61  250,000 7,024 1030 0.60 0% 0% 2% 98%
fasta  #3 5.98  2,500,000 7,184 1030 5.98 2% 1% 1% 100%
fasta  #3 59.04  25,000,000 7,196 1030 59.02 0% 4% 1% 100%
source secs N mem gz cpu cpu load
k-nucleotide  #4 1.71  250,000 67,816 1060 1.65 1% 0% 2% 100%
k-nucleotide  #4 16.06  2,500,000 25,804 1060 15.85 0% 1% 1% 100%
k-nucleotide  #4 163.07  25,000,000 149,888 1060 161.59 1% 1% 1% 100%
source secs N mem gz cpu cpu load
mandelbrot  #3 2.65  1,000 26,900 863 2.62 1% 0% 1% 100%
mandelbrot  #3 41.86  4,000 50,972 863 41.83 0% 1% 1% 100%
mandelbrot  #3 696.23  16,000 130,700 863 696.02 1% 1% 1% 100%
source secs N mem gz cpu cpu load
mandelbrot  2.66  1,000 7,008 443 2.65 2% 1% 2% 100%
mandelbrot  41.26  4,000 6,864 443 41.24 1% 0% 1% 100%
mandelbrot  705.37  16,000 6,888 443 705.17 1% 1% 1% 100%
source secs N mem gz cpu cpu load
n-body  #3 4.16  500,000 7,240 1082 4.16 0% 0% 2% 100%
n-body  #3 42.47  5,000,000 7,128 1082 42.46 1% 1% 1% 100%
n-body  #3 420.03  50,000,000 7,016 1082 419.91 1% 1% 1% 100%
source secs N mem gz cpu cpu load
pidigits  #4 0.15  2,000 ? 384 0.14 0% 6% 0% 100%
pidigits  #4 1.03  6,000 7,996 384 1.02 1% 0% 1% 100%
pidigits  #4 2.82  10,000 8,216 384 2.81 0% 1% 1% 100%
source secs N mem gz cpu cpu load
pidigits  18.69  2,000 7,016 736 18.68 0% 0% 1% 100%
pidigits  193.35  6,000 7,072 736 193.28 1% 1% 1% 100%
pidigits  569.10  10,000 9,076 736 568.91 1% 1% 1% 100%
source secs N mem gz cpu cpu load
pidigits  #2 0.23  2,000 616 537 0.22 4% 0% 5% 95%
pidigits  #2 1.63  6,000 8,068 537 1.63 0% 2% 1% 100%
pidigits  #2 4.42  10,000 8,624 537 4.42 1% 0% 1% 100%
source secs N mem gz cpu cpu load
pidigits  #5 0.15  2,000 ? 394 0.13 0% 0% 0% 100%
pidigits  #5 0.99  6,000 7,852 394 0.99 2% 2% 2% 99%
pidigits  #5 2.81  10,000 8,264 394 2.80 0% 1% 1% 100%
source secs N mem gz cpu cpu load
pidigits  #3 0.32  2,000 ? 500 ? 0% 3% 0% 100%
pidigits  #3 1.01  6,000 7,784 500 1.01 1% 1% 0% 99%
pidigits  #3 2.83  10,000 8,216 500 2.83 1% 1% 1% 100%
source secs N mem gz cpu cpu load
regex-dna  #2 0.08  50,000 ? 449 0.05 0% 0% 0% 89%
regex-dna  #2 0.59  500,000 13,708 449 0.51 2% 0% 3% 98%
regex-dna  #2 4.95  5,000,000 170,804 449 4.94 1% 2% 1% 100%
source secs N mem gz cpu cpu load
regex-dna  0.07  50,000 ? 788 0.04 0% 0% 0% 86%
regex-dna  0.53  500,000 36,212 788 0.32 0% 0% 2% 100%
regex-dna  4.98  5,000,000 170,080 788 3.03 1% 0% 1% 100%
source secs N mem gz cpu cpu load
regex-dna  #4 0.07  50,000 ? 832 0.06 0% 0% 0% 100%
regex-dna  #4 0.52  500,000 73,172 832 0.51 0% 2% 0% 100%
regex-dna  #4 4.79  5,000,000 105,376 832 4.78 1% 0% 1% 100%
source secs N mem gz cpu cpu load
regex-dna  #3 0.06  50,000 ? 459 0.05 0% 0% 0% 100%
regex-dna  #3 0.51  500,000 13,724 459 0.51 2% 2% 4% 98%
regex-dna  #3 4.95  5,000,000 168,744 459 4.94 1% 1% 1% 100%
source secs N mem gz cpu cpu load
reverse-complement  0.09  250,000 ? 297 0.05 0% 0% 0% 100%
reverse-complement  0.64  2,500,000 15,432 297 0.53 2% 3% 0% 100%
reverse-complement  4.68  25,000,000 375,464 297 4.67 0% 0% 2% 100%
source secs N mem gz cpu cpu load
reverse-complement  #2 0.08  250,000 ? 262 0.05 0% 0% 0% 90%
reverse-complement  #2 0.68  2,500,000 21,984 262 0.57 0% 4% 0% 100%
reverse-complement  #2 5.13  25,000,000 446,852 262 5.12 0% 1% 1% 100%
source secs N mem gz cpu cpu load
spectral-norm  1.55  500 15,256 1135 1.50 1% 1% 2% 100%
spectral-norm  47.64  3,000 15,252 1135 47.62 1% 0% 1% 100%
spectral-norm  159.77  5,500 15,420 1135 159.71 1% 1% 1% 100%
source secs N mem gz cpu cpu load
spectral-norm  #3 2.03  500 15,464 1193 2.02 1% 1% 1% 100%
spectral-norm  #3 72.65  3,000 15,336 1193 72.62 0% 1% 1% 100%
spectral-norm  #3 244.00  5,500 15,320 1193 243.92 1% 1% 1% 100%
source secs N mem gz cpu cpu load
spectral-norm  #2 1.97  500 7,088 397 1.96 0% 0% 3% 100%
spectral-norm  #2 70.81  3,000 7,072 397 70.79 1% 1% 0% 100%
spectral-norm  #2 238.65  5,500 7,068 397 238.59 1% 1% 1% 100%