The Computer Language
Benchmarks Game

all PHP programs & measurements

PHP 7.2.0 (cli) (built: Nov 30 2017 10:13:12) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2017 Zend Technologies

source secs N mem gz cpu cpu load
binary-trees  0.26  7 ? 451 ? 28% 0% 7% 0%
binary-trees  0.83  14 15,728 451 0.83 100% 1% 1% 0%
binary-trees  228.50  21 734,884 451 228.33 29% 0% 0% 72%
source secs N mem gz cpu cpu load
binary-trees  #7 0.22  7 ? 751 ? 5% 0% 91% 9%
binary-trees  #7 0.26  14 50,248 751 0.78 84% 89% 73% 69%
binary-trees  #7 85.02  21 1,551,888 751 197.60 87% 71% 77% 81%
source secs N mem gz cpu cpu load
binary-trees  #5 0.06  7 ? 1040 ? 14% 0% 17% 83%
binary-trees  #5 0.41  14 10,424 1040 1.10 63% 85% 38% 88%
binary-trees  #5 79.01  21 736,908 1040 222.04 91% 95% 0% 95%
source secs N mem gz cpu cpu load
binary-trees  #3 0.02  7 ? 428 0.01 50% 100% 0% 0%
binary-trees  #3 0.68  14 21,908 428 0.67 0% 4% 100% 0%
binary-trees  #3 223.82  21 1,551,796 428 223.65 5% 13% 19% 66%
source secs N mem gz cpu cpu load
binary-trees  #2 0.11  7 ? 423 ? 0% 93% 0% 0%
binary-trees  #2 0.88  14 15,968 423 0.88 99% 0% 0% 3%
binary-trees  #2 322.31  21 734,856 423 322.03 0% 77% 23% 1%
source secs N mem gz cpu cpu load
binary-trees  #6 0.22  7 ? 868 ? 38% 9% 0% 0%
binary-trees  #6 0.35  14 31,204 868 1.09 92% 89% 86% 53%
binary-trees  #6 65.20  21 736,468 868 235.57 93% 94% 92% 98%
source secs N mem gz cpu cpu load
binary-trees  #4 0.03  7 ? 770 0.02 0% 33% 67% 50%
binary-trees  #4 0.32  14 35,240 770 0.80 52% 58% 77% 72%
binary-trees  #4 112.74  21 1,552,072 770 316.72 67% 89% 70% 71%
source secs N mem gz cpu cpu load
fannkuch-redux  7.91  10 9,072 482 7.85 0% 1% 100% 1%
fannkuch-redux  98.07  11 9,144 482 98.05 13% 0% 0% 87%
fannkuch-redux  1,402.13  12 9,360 482 1,401.86 1% 0% 0% 100%
source secs N mem gz cpu cpu load
fannkuch-redux  #3 1.39  10 34,652 1160 5.18 97% 94% 93% 94%
fannkuch-redux  #3 16.32  11 34,680 1160 64.97 99% 100% 99% 100%
fannkuch-redux  #3 233.57  12 34,748 1160 929.49 100% 99% 100% 99%
source secs N mem gz cpu cpu load
fannkuch-redux  #2 5.43  10 9,240 441 4.91 8% 100% 4% 3%
fannkuch-redux  #2 66.09  11 9,036 441 66.07 0% 0% 1% 100%
fannkuch-redux  #2 907.92  12 8,892 441 907.75 0% 92% 9% 0%
source secs N mem gz cpu cpu load
fasta  #2 1.26  250,000 9,240 1050 1.24 2% 0% 0% 99%
fasta  #2 11.35  2,500,000 9,188 1050 11.34 0% 100% 1% 1%
fasta  #2 98.92  25,000,000 9,332 1050 98.90 23% 0% 1% 77%
source secs N mem gz cpu cpu load
fasta  #3 0.62  250,000 9,316 1062 0.62 11% 98% 2% 2%
fasta  #3 6.23  2,500,000 9,192 1062 6.23 0% 44% 57% 1%
fasta  #3 59.12  25,000,000 9,412 1062 59.11 40% 0% 1% 60%
source secs N mem gz cpu cpu load
k-nucleotide  #4 0.52  250,000 68,504 1079 1.45 87% 51% 57% 94%
k-nucleotide  #4 4.42  2,500,000 27,780 1079 13.82 73% 90% 87% 65%
k-nucleotide  #4 41.39  25,000,000 242,044 1079 133.27 83% 76% 73% 91%
source secs N mem gz cpu cpu load
mandelbrot  #3 0.51  1,000 27,788 875 1.93 96% 96% 98% 96%
mandelbrot  #3 7.52  4,000 57,036 875 29.90 100% 99% 100% 99%
mandelbrot  #3 118.07  16,000 137,452 875 471.57 100% 100% 100% 100%
source secs N mem gz cpu cpu load
mandelbrot  1.88  1,000 9,216 449 1.88 100% 0% 1% 1%
mandelbrot  29.93  4,000 9,176 449 29.92 0% 97% 4% 0%
mandelbrot  467.21  16,000 8,964 449 467.11 2% 0% 0% 98%
source secs N mem gz cpu cpu load
n-body  #3 3.43  500,000 9,028 1082 3.42 100% 0% 1% 1%
n-body  #3 33.95  5,000,000 9,328 1082 33.95 12% 0% 1% 89%
n-body  #3 353.84  50,000,000 9,220 1082 353.77 0% 100% 1% 0%
source secs N mem gz cpu cpu load
pidigits  #5 0.12  2,000 ? 399 0.10 0% 55% 100% 0%
pidigits  #5 0.75  6,000 10,332 399 0.75 99% 3% 1% 0%
pidigits  #5 2.12  10,000 10,664 399 2.11 100% 0% 1% 1%
source secs N mem gz cpu cpu load
pidigits  #3 0.11  2,000 ? 504 0.11 0% 0% 100% 18%
pidigits  #3 0.77  6,000 10,384 504 0.76 3% 4% 99% 0%
pidigits  #3 2.14  10,000 10,672 504 2.14 1% 0% 0% 100%
source secs N mem gz cpu cpu load
pidigits  17.90  2,000 9,280 736 17.87 0% 100% 1% 0%
pidigits  185.27  6,000 9,164 736 185.22 1% 0% 0% 100%
pidigits  545.40  10,000 11,680 736 545.27 0% 91% 10% 0%
source secs N mem gz cpu cpu load
pidigits  #4 0.11  2,000 ? 389 0.11 18% 100% 18% 0%
pidigits  #4 0.79  6,000 10,256 389 0.78 1% 3% 99% 0%
pidigits  #4 2.12  10,000 10,512 389 2.12 100% 0% 0% 2%
source secs N mem gz cpu cpu load
pidigits  #2 0.17  2,000 ? 545 0.16 11% 38% 0% 94%
pidigits  #2 1.18  6,000 10,476 545 1.17 100% 0% 1% 1%
pidigits  #2 3.21  10,000 10,968 545 3.20 1% 0% 1% 100%
regex-redux  #4 Bad Output  50,000
source secs N mem gz cpu cpu load
regex-redux  0.07  50,000 ? 816 0.04 71% 29% 29% 67%
regex-redux  0.40  500,000 31,232 816 0.27 24% 88% 29% 32%
regex-redux  2.63  5,000,000 270,048 816 2.46 38% 39% 85% 38%
source secs N mem gz cpu cpu load
reverse-complement  #3 0.50  250,000 ? 438 ? 6% 8% 8% 92%
reverse-complement  #3 12.08  100,000,000 516,904 438 7.57 3% 59% 29% 59%
source secs N mem gz cpu cpu load
reverse-complement  0.05  250,000 ? 312 0.04 0% 60% 100% 0%
reverse-complement  14.96  100,000,000 1,473,012 312 14.94 100% 0% 1% 0%
source secs N mem gz cpu cpu load
reverse-complement  #2 0.04  250,000 ? 274 0.04 0% 0% 100% 0%
reverse-complement  #2 17.80  100,000,000 1,779,140 274 17.77 0% 1% 100% 0%
source secs N mem gz cpu cpu load
spectral-norm  0.33  500 11,668 1152 1.24 94% 94% 97% 94%
spectral-norm  11.10  3,000 20,008 1152 44.22 100% 100% 100% 100%
spectral-norm  37.09  5,500 20,208 1152 147.78 100% 100% 100% 100%
source secs N mem gz cpu cpu load
spectral-norm  #3 0.56  500 20,172 1210 2.10 95% 93% 95% 93%
spectral-norm  #3 17.65  3,000 20,316 1210 70.41 100% 100% 100% 100%
spectral-norm  #3 59.76  5,500 20,320 1210 238.50 100% 100% 100% 100%
source secs N mem gz cpu cpu load
spectral-norm  #2 1.94  500 9,412 397 1.94 1% 100% 1% 0%
spectral-norm  #2 70.08  3,000 9,280 397 70.06 0% 0% 0% 100%
spectral-norm  #2 239.88  5,500 9,240 397 239.83 0% 85% 16% 0%