The Computer Language
Benchmarks Game

all PHP programs & measurements

PHP 7.1.4 (cli) (built: Apr 16 2017 16:17:54) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies

source secs N mem gz cpu cpu load
binary-trees  #3 0.03  7 ? 428 ? 0% 0% 100% 0%
binary-trees  #3 0.72  14 21,660 428 0.72 1% 1% 100% 1%
binary-trees  #3 241.44  21 1,551,556 428 241.24 100% 0% 1% 0%
source secs N mem gz cpu cpu load
binary-trees  #2 0.61  7 ? 423 ? 84% 27% 56% 84%
binary-trees  #2 1.11  14 15,572 423 1.10 2% 100% 7% 1%
binary-trees  #2 362.28  21 734,364 423 361.96 100% 2% 3% 2%
source secs N mem gz cpu cpu load
binary-trees  #5 0.07  7 ? 1027 ? 100% 14% 0% 0%
binary-trees  #5 0.47  14 36,184 1027 1.24 87% 85% 49% 57%
binary-trees  #5 88.07  21 736,372 1027 247.49 92% 77% 23% 91%
source secs N mem gz cpu cpu load
binary-trees  #4 0.06  7 ? 762 ? 0% 86% 0% 0%
binary-trees  #4 0.32  14 67,252 762 0.87 58% 64% 72% 91%
binary-trees  #4 275.97  21 1,551,680 762 326.77 93% 92% 88% 92%
source secs N mem gz cpu cpu load
binary-trees  0.02  7 ? 451 ? 50% 33% 100% 0%
binary-trees  0.94  14 15,440 451 0.94 2% 2% 2% 100%
binary-trees  263.74  21 734,416 451 263.49 3% 100% 2% 3%
source secs N mem gz cpu cpu load
fannkuch-redux  #2 5.14  10 8,728 441 5.10 100% 0% 1% 0%
fannkuch-redux  #2 72.36  11 8,672 441 72.34 95% 0% 1% 5%
fannkuch-redux  #2 923.73  12 8,852 441 923.30 0% 1% 99% 0%
source secs N mem gz cpu cpu load
fannkuch-redux  #3 1.56  10 33,516 1150 6.09 99% 97% 99% 99%
fannkuch-redux  #3 18.98  11 33,444 1150 75.43 100% 99% 99% 100%
fannkuch-redux  #3 280.04  12 33,588 1150 1,117.48 100% 100% 100% 100%
source secs N mem gz cpu cpu load
fannkuch-redux  8.56  10 8,816 482 8.53 1% 100% 0% 1%
fannkuch-redux  115.00  11 8,804 482 114.96 100% 1% 1% 1%
fannkuch-redux  1,505.10  12 8,880 482 1,504.76 100% 0% 1% 0%
source secs N mem gz cpu cpu load
fasta  #2 1.26  250,000 8,904 1006 1.25 0% 2% 99% 1%
fasta  #2 12.72  2,500,000 8,792 1006 12.71 1% 0% 1% 100%
fasta  #2 127.56  25,000,000 8,812 1006 127.35 18% 55% 1% 29%
source secs N mem gz cpu cpu load
fasta  #3 0.61  250,000 8,668 1030 0.60 100% 2% 2% 2%
fasta  #3 6.30  2,500,000 8,848 1030 6.26 29% 99% 7% 5%
fasta  #3 59.37  25,000,000 8,896 1030 59.36 5% 2% 3% 100%
source secs N mem gz cpu cpu load
k-nucleotide  #4 0.53  250,000 67,800 1060 1.54 87% 62% 58% 91%
k-nucleotide  #4 4.66  2,500,000 23,292 1060 14.76 70% 98% 91% 66%
k-nucleotide  #4 43.96  25,000,000 235,632 1060 142.28 87% 100% 71% 72%
source secs N mem gz cpu cpu load
mandelbrot  2.08  1,000 8,736 443 2.07 2% 0% 1% 100%
mandelbrot  31.60  4,000 8,708 443 31.59 1% 0% 100% 0%
mandelbrot  507.88  16,000 8,688 443 507.72 65% 12% 2% 23%
source secs N mem gz cpu cpu load
mandelbrot  #3 0.55  1,000 30,560 863 2.00 84% 96% 98% 95%
mandelbrot  #3 7.94  4,000 55,508 863 31.55 100% 99% 99% 100%
mandelbrot  #3 125.17  16,000 136,776 863 499.16 100% 100% 100% 100%
source secs N mem gz cpu cpu load
n-body  #3 3.55  500,000 8,780 1082 3.54 0% 1% 100% 1%
n-body  #3 37.27  5,000,000 8,800 1082 37.26 1% 0% 100% 0%
n-body  #3 358.21  50,000,000 8,668 1082 358.12 17% 0% 1% 83%
source secs N mem gz cpu cpu load
pidigits  #5 0.12  2,000 ? 394 0.11 100% 7% 0% 0%
pidigits  #5 0.78  6,000 9,400 394 0.78 1% 100% 1% 0%
pidigits  #5 2.15  10,000 9,884 394 2.15 1% 0% 100% 1%
source secs N mem gz cpu cpu load
pidigits  #4 0.12  2,000 ? 384 0.12 0% 0% 92% 0%
pidigits  #4 0.82  6,000 9,556 384 0.81 2% 99% 0% 1%
pidigits  #4 2.16  10,000 9,856 384 2.16 100% 0% 0% 2%
source secs N mem gz cpu cpu load
pidigits  17.48  2,000 8,804 736 17.47 1% 100% 1% 1%
pidigits  180.64  6,000 11,132 736 180.57 1% 100% 1% 1%
pidigits  531.31  10,000 11,140 736 531.14 100% 0% 1% 1%
source secs N mem gz cpu cpu load
pidigits  #2 0.21  2,000 1,820 537 0.18 100% 0% 0% 5%
pidigits  #2 1.25  6,000 9,752 537 1.25 1% 2% 0% 100%
pidigits  #2 3.34  10,000 10,248 537 3.34 1% 0% 100% 0%
source secs N mem gz cpu cpu load
pidigits  #3 0.12  2,000 ? 500 0.11 100% 0% 0% 0%
pidigits  #3 0.81  6,000 9,580 500 0.80 1% 100% 4% 0%
pidigits  #3 2.19  10,000 9,868 500 2.19 100% 0% 0% 1%
regex-redux  #4 Bad Output  50,000
source secs N mem gz cpu cpu load
regex-redux  0.07  50,000 ? 786 0.05 86% 17% 17% 29%
regex-redux  0.49  500,000 40,512 786 0.36 24% 27% 15% 88%
regex-redux  3.34  5,000,000 158,792 786 3.30 25% 26% 22% 92%
source secs N mem gz cpu cpu load
reverse-complement  #2 0.05  250,000 ? 262 0.04 0% 100% 0% 0%
reverse-complement  #2 0.46  2,500,000 33,204 262 0.46 0% 100% 6% 4%
reverse-complement  #2 4.23  25,000,000 438,248 262 4.22 2% 0% 1% 100%
source secs N mem gz cpu cpu load
reverse-complement  0.09  250,000 ? 297 0.04 0% 100% 0% 0%
reverse-complement  0.66  2,500,000 15,288 297 0.44 2% 2% 2% 100%
reverse-complement  3.82  25,000,000 359,768 297 3.81 1% 100% 1% 0%
source secs N mem gz cpu cpu load
reverse-complement  #3 0.08  250,000 ? 426 ? 13% 78% 14% 100%
reverse-complement  #3 0.33  2,500,000 30,016 426 0.22 63% 32% 50% 23%
reverse-complement  #3 2.81  25,000,000 135,124 426 1.75 31% 21% 44% 57%
source secs N mem gz cpu cpu load
spectral-norm  #3 0.54  500 19,380 1193 2.01 92% 94% 96% 92%
spectral-norm  #3 18.37  3,000 19,496 1193 72.30 99% 98% 99% 99%
spectral-norm  #3 59.54  5,500 19,484 1193 236.80 99% 99% 100% 100%
source secs N mem gz cpu cpu load
spectral-norm  #2 1.95  500 8,936 397 1.94 1% 100% 1% 1%
spectral-norm  #2 69.96  3,000 8,736 397 69.93 1% 100% 0% 1%
spectral-norm  #2 255.95  5,500 8,796 397 255.88 100% 1% 1% 1%
source secs N mem gz cpu cpu load
spectral-norm  0.36  500 12,412 1135 1.28 94% 89% 86% 89%
spectral-norm  13.10  3,000 19,420 1135 51.78 99% 99% 99% 99%
spectral-norm  37.94  5,500 19,420 1135 150.67 99% 99% 100% 99%