The Computer Language
Benchmarks Game

all PHP programs & measurements

PHP 7.0.6 (cli) (built: May 4 2016 16:00:18) ( NTS )
Copyright (c) 1997-2015 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies

source secs N mem gz cpu cpu load
binary-trees  #3 0.27  12 1,240 483 0.27 64% 50% 7% 64%
binary-trees  #3 7.26  16 104,324 483 7.25 1% 0% 100% 1%
binary-trees  #3 175.09  20 1,550,168 483 174.93 98% 4% 1% 0%
source secs N mem gz cpu cpu load
binary-trees  #2 0.32  12 1,276 472 0.32 100% 0% 3% 0%
binary-trees  #2 8.43  16 35,032 472 8.42 1% 0% 1% 100%
binary-trees  #2 230.68  20 440,540 472 230.46 1% 100% 0% 1%
source secs N mem gz cpu cpu load
binary-trees  #4 0.34  12 ? 1161 ? 23% 85% 40% 21%
binary-trees  #4 3.10  16 ? 1161 ? 65% 94% 65% 65%
binary-trees  #4 103.82  20 ? 1161 ? 85% 88% 92% 75%
source secs N mem gz cpu cpu load
binary-trees  0.35  12 1,232 504 0.34 6% 100% 3% 3%
binary-trees  8.92  16 34,988 504 8.91 1% 1% 100% 0%
binary-trees  238.11  20 440,464 504 237.90 0% 1% 1% 100%
source secs N mem gz cpu cpu load
fannkuch-redux  #2 6.06  10 7,836 441 6.05 1% 100% 0% 1%
fannkuch-redux  #2 79.25  11 7,836 441 79.22 1% 49% 51% 1%
fannkuch-redux  #2 1,196.81  12 7,788 441 1,196.53 100% 1% 1% 0%
source secs N mem gz cpu cpu load
fannkuch-redux  #3 1.81  10 29,196 1150 6.95 99% 96% 94% 97%
fannkuch-redux  #3 24.76  11 29,188 1150 97.98 99% 99% 99% 100%
fannkuch-redux  #3 321.58  12 29,140 1150 1,280.13 100% 100% 99% 100%
source secs N mem gz cpu cpu load
fannkuch-redux  9.52  10 7,952 482 9.51 0% 80% 20% 1%
fannkuch-redux  119.45  11 7,928 482 119.41 0% 1% 0% 100%
fannkuch-redux  1,671.82  12 7,928 482 1,671.42 100% 1% 1% 0%
source secs N mem gz cpu cpu load
fasta  #2 1.51  250,000 7,920 1006 1.50 0% 2% 100% 0%
fasta  #2 14.50  2,500,000 7,900 1006 14.49 0% 1% 1% 100%
fasta  #2 150.20  25,000,000 8,016 1006 150.03 5% 29% 15% 53%
source secs N mem gz cpu cpu load
fasta  #3 0.64  250,000 7,848 1030 0.63 100% 0% 0% 2%
fasta  #3 6.09  2,500,000 7,880 1030 6.08 0% 1% 100% 1%
fasta  #3 59.28  25,000,000 7,936 1030 59.26 1% 0% 1% 100%
source secs N mem gz cpu cpu load
k-nucleotide  #4 0.53  250,000 63,732 1060 1.60 89% 94% 69% 60%
k-nucleotide  #4 4.78  2,500,000 24,328 1060 15.32 91% 93% 69% 71%
k-nucleotide  #4 44.55  25,000,000 135,472 1060 152.16 81% 92% 76% 93%
source secs N mem gz cpu cpu load
mandelbrot  2.06  1,000 7,812 443 2.06 1% 1% 0% 100%
mandelbrot  33.08  4,000 7,824 443 33.06 1% 100% 0% 1%
mandelbrot  527.36  16,000 7,892 443 527.20 18% 25% 16% 45%
source secs N mem gz cpu cpu load
mandelbrot  #3 0.55  1,000 29,820 863 2.08 96% 98% 98% 96%
mandelbrot  #3 8.22  4,000 52,152 863 32.71 100% 100% 100% 100%
mandelbrot  #3 134.34  16,000 132,880 863 536.04 100% 100% 100% 100%
source secs N mem gz cpu cpu load
n-body  #3 4.31  500,000 7,900 1082 4.31 2% 0% 0% 100%
n-body  #3 42.98  5,000,000 7,852 1082 42.96 1% 100% 1% 1%
n-body  #3 432.48  50,000,000 7,928 1082 432.36 0% 100% 0% 1%
source secs N mem gz cpu cpu load
pidigits  #5 0.13  2,000 ? 394 0.11 0% 0% 0% 92%
pidigits  #5 0.79  6,000 8,568 394 0.79 0% 4% 0% 100%
pidigits  #5 2.19  10,000 8,852 394 2.18 100% 1% 0% 2%
source secs N mem gz cpu cpu load
pidigits  #4 0.12  2,000 ? 384 0.12 0% 0% 100% 0%
pidigits  #4 0.82  6,000 8,564 384 0.81 99% 1% 0% 0%
pidigits  #4 2.20  10,000 8,764 384 2.20 1% 1% 0% 100%
source secs N mem gz cpu cpu load
pidigits  17.24  2,000 7,868 736 17.23 1% 0% 0% 100%
pidigits  177.96  6,000 7,904 736 177.90 2% 64% 36% 1%
pidigits  522.89  10,000 10,184 736 522.72 1% 85% 15% 1%
source secs N mem gz cpu cpu load
pidigits  #2 0.22  2,000 1,292 537 0.19 0% 95% 9% 0%
pidigits  #2 1.28  6,000 8,804 537 1.28 4% 99% 0% 1%
pidigits  #2 3.36  10,000 9,304 537 3.35 1% 0% 100% 2%
source secs N mem gz cpu cpu load
pidigits  #3 0.33  2,000 ? 500 ? 91% 0% 12% 0%
pidigits  #3 0.81  6,000 8,516 500 0.81 0% 100% 2% 0%
pidigits  #3 2.22  10,000 8,848 500 2.21 100% 1% 0% 2%
regex-redux  #4 Bad Output  50,000
source secs N mem gz cpu cpu load
regex-redux  0.05  50,000 ? 786 0.05 20% 67% 33% 67%
regex-redux  0.36  500,000 1,340 786 0.34 33% 49% 17% 75%
regex-redux  3.37  5,000,000 155,708 786 3.24 20% 93% 24% 27%
source secs N mem gz cpu cpu load
reverse-complement  #2 0.05  250,000 ? 262 0.04 100% 0% 0% 0%
reverse-complement  #2 0.48  2,500,000 35,796 262 0.48 100% 2% 0% 4%
reverse-complement  #2 4.50  25,000,000 441,272 262 4.49 0% 100% 1% 1%
source secs N mem gz cpu cpu load
reverse-complement  0.10  250,000 ? 297 ? 100% 9% 0% 0%
reverse-complement  0.70  2,500,000 13,216 297 0.46 3% 78% 24% 3%
reverse-complement  4.02  25,000,000 336,164 297 4.01 2% 0% 100% 0%
source secs N mem gz cpu cpu load
reverse-complement  #3 0.28  250,000 ? 426 ? 7% 96% 7% 7%
reverse-complement  #3 0.59  2,500,000 ? 426 ? 18% 39% 2% 78%
reverse-complement  #3 2.91  25,000,000 134,048 426 1.79 67% 22% 61% 2%
source secs N mem gz cpu cpu load
spectral-norm  #3 0.63  500 17,076 1193 2.06 88% 73% 84% 84%
spectral-norm  #3 18.39  3,000 17,096 1193 72.31 99% 99% 98% 98%
spectral-norm  #3 60.15  5,500 17,048 1193 238.25 99% 99% 99% 99%
source secs N mem gz cpu cpu load
spectral-norm  #2 1.98  500 7,912 397 1.98 1% 100% 0% 2%
spectral-norm  #2 81.22  3,000 7,936 397 81.20 100% 0% 1% 0%
spectral-norm  #2 237.75  5,500 7,900 397 237.68 1% 99% 1% 1%
source secs N mem gz cpu cpu load
spectral-norm  0.40  500 10,468 1135 1.35 85% 88% 90% 80%
spectral-norm  11.86  3,000 16,988 1135 47.08 99% 99% 100% 99%
spectral-norm  41.23  5,500 17,104 1135 163.58 99% 99% 100% 99%