The Computer Language
Benchmarks Game

all PHP programs & measurements

PHP 7.1.11 (cli) (built: Nov 16 2017 15:22:17) ( 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  0.03  7 ? 451 ? 50% 0% 33% 0%
binary-trees  0.96  14 15,504 451 0.95 100% 0% 0% 29%
binary-trees  254.43  21 734,560 451 254.25 3% 0% 0% 97%
source secs N mem gz cpu cpu load
binary-trees  #5 0.03  7 ? 1040 0.03 33% 25% 33% 67%
binary-trees  #5 0.48  14 30,944 1040 1.32 88% 86% 12% 88%
binary-trees  #5 91.40  21 736,224 1040 258.87 76% 88% 61% 59%
source secs N mem gz cpu cpu load
binary-trees  #3  7 ? 428 0.01
binary-trees  #3 0.72  14 21,812 428 0.72 100% 0% 0% 4%
binary-trees  #3 233.40  21 1,551,600 428 233.24 23% 1% 1% 77%
source secs N mem gz cpu cpu load
binary-trees  #2 0.13  7 ? 423 ? 0% 100% 0% 0%
binary-trees  #2 1.05  14 15,708 423 1.04 2% 3% 99% 0%
binary-trees  #2 361.13  21 734,496 423 360.84 0% 57% 44% 0%
source secs N mem gz cpu cpu load
binary-trees  #4 0.03  7 ? 770 0.02 33% 33% 50% 33%
binary-trees  #4 0.33  14 83,420 770 0.94 79% 56% 63% 97%
binary-trees  #4 207.84  21 1,551,668 770 332.63 85% 87% 86% 88%
source secs N mem gz cpu cpu load
fannkuch-redux  8.89  10 8,764 482 8.25 94% 36% 37% 7%
fannkuch-redux  105.90  11 8,980 482 105.88 22% 3% 1% 80%
fannkuch-redux  1,443.97  12 9,112 482 1,443.66 12% 5% 7% 90%
source secs N mem gz cpu cpu load
fannkuch-redux  #3 1.47  10 33,460 1160 5.47 93% 97% 93% 95%
fannkuch-redux  #3 17.50  11 33,580 1160 69.50 100% 100% 99% 99%
fannkuch-redux  #3 244.56  12 33,692 1160 976.04 100% 100% 100% 100%
source secs N mem gz cpu cpu load
fannkuch-redux  #2 5.60  10 8,764 441 5.55 1% 0% 1% 99%
fannkuch-redux  #2 64.60  11 8,612 441 64.59 0% 0% 0% 100%
fannkuch-redux  #2 966.77  12 8,708 441 966.57 0% 0% 0% 100%
source secs N mem gz cpu cpu load
fasta  #2 1.38  250,000 8,920 1050 1.37 2% 4% 1% 99%
fasta  #2 13.89  2,500,000 9,028 1050 13.88 47% 0% 1% 53%
fasta  #2 132.54  25,000,000 9,112 1050 132.37 6% 1% 1% 94%
source secs N mem gz cpu cpu load
fasta  #3 0.64  250,000 8,888 1062 0.63 0% 13% 0% 98%
fasta  #3 6.70  2,500,000 8,904 1062 6.70 0% 1% 0% 100%
fasta  #3 60.62  25,000,000 8,952 1062 60.61 0% 66% 35% 0%
source secs N mem gz cpu cpu load
k-nucleotide  #4 0.54  250,000 65,728 1079 1.51 66% 59% 91% 85%
k-nucleotide  #4 4.75  2,500,000 23,300 1079 14.95 74% 91% 84% 68%
k-nucleotide  #4 43.83  25,000,000 235,524 1079 146.88 80% 89% 73% 95%
source secs N mem gz cpu cpu load
mandelbrot  #3 0.55  1,000 26,668 875 2.05 98% 94% 96% 96%
mandelbrot  #3 8.12  4,000 56,392 875 32.26 100% 100% 100% 100%
mandelbrot  #3 142.21  16,000 135,060 875 564.00 100% 100% 100% 100%
source secs N mem gz cpu cpu load
mandelbrot  2.01  1,000 8,780 449 2.01 0% 0% 100% 1%
mandelbrot  32.39  4,000 9,008 449 32.39 100% 0% 0% 0%
mandelbrot  518.66  16,000 8,704 449 518.54 7% 9% 9% 100%
source secs N mem gz cpu cpu load
n-body  #3 3.92  500,000 8,848 1082 3.73 45% 1% 0% 56%
n-body  #3 37.48  5,000,000 8,908 1082 37.47 100% 8% 3% 6%
n-body  #3 387.92  50,000,000 8,708 1082 387.84 0% 34% 68% 0%
source secs N mem gz cpu cpu load
pidigits  #5 0.14  2,000 ? 399 0.10 93% 0% 7% 0%
pidigits  #5 0.76  6,000 10,032 399 0.75 3% 0% 100% 0%
pidigits  #5 2.12  10,000 10,256 399 2.12 100% 0% 0% 1%
source secs N mem gz cpu cpu load
pidigits  #3 0.11  2,000 ? 504 0.11 0% 0% 0% 100%
pidigits  #3 0.78  6,000 9,768 504 0.77 0% 100% 3% 0%
pidigits  #3 2.15  10,000 10,244 504 2.15 0% 1% 100% 2%
source secs N mem gz cpu cpu load
pidigits  17.89  2,000 8,816 736 17.88 0% 77% 24% 0%
pidigits  185.19  6,000 11,308 736 185.15 97% 1% 0% 4%
pidigits  545.25  10,000 11,168 736 545.13 100% 0% 1% 0%
source secs N mem gz cpu cpu load
pidigits  #4 0.12  2,000 ? 389 0.11 0% 0% 92% 0%
pidigits  #4 0.79  6,000 9,908 389 0.79 0% 1% 100% 0%
pidigits  #4 2.13  10,000 10,264 389 2.13 100% 0% 0% 2%
source secs N mem gz cpu cpu load
pidigits  #2 0.17  2,000 ? 545 0.17 0% 0% 100% 6%
pidigits  #2 1.21  6,000 10,108 545 1.21 0% 100% 0% 0%
pidigits  #2 3.25  10,000 10,568 545 3.25 100% 0% 0% 1%
regex-redux  #4 Bad Output  50,000
source secs N mem gz cpu cpu load
regex-redux  0.12  50,000 ? 816 ? 17% 31% 82% 18%
regex-redux  0.46  500,000 21,380 816 0.35 24% 22% 58% 33%
regex-redux  3.32  5,000,000 158,820 816 3.25 78% 27% 18% 39%
source secs N mem gz cpu cpu load
reverse-complement  #3 0.04  250,000 ? 438 0.03 50% 25% 25% 50%
reverse-complement  #3 0.33  2,500,000 26,012 438 0.24 34% 38% 18% 74%
reverse-complement  #3 2.80  25,000,000 135,312 438 1.68 80% 9% 59% 3%
source secs N mem gz cpu cpu load
reverse-complement  0.05  250,000 ? 312 0.05 83% 0% 0% 0%
reverse-complement  0.42  2,500,000 11,244 312 0.41 2% 100% 2% 0%
reverse-complement  3.71  25,000,000 371,964 312 3.70 1% 1% 1% 100%
source secs N mem gz cpu cpu load
reverse-complement  #2 0.09  250,000 ? 274 ? 10% 100% 0% 0%
reverse-complement  #2 0.63  2,500,000 24,420 274 0.46 6% 0% 0% 92%
reverse-complement  #2 4.12  25,000,000 444,404 274 4.11 1% 0% 0% 100%
source secs N mem gz cpu cpu load
spectral-norm  0.40  500 12,652 1152 1.50 95% 93% 95% 92%
spectral-norm  14.29  3,000 19,344 1152 56.97 100% 100% 100% 100%
spectral-norm  43.26  5,500 19,436 1152 172.15 100% 100% 100% 99%
source secs N mem gz cpu cpu load
spectral-norm  #3 0.52  500 19,460 1210 1.98 94% 94% 94% 96%
spectral-norm  #3 18.88  3,000 19,496 1210 75.20 100% 100% 100% 100%
spectral-norm  #3 63.65  5,500 19,696 1210 253.60 100% 100% 100% 100%
source secs N mem gz cpu cpu load
spectral-norm  #2 1.93  500 8,988 397 1.92 0% 100% 1% 0%
spectral-norm  #2 69.39  3,000 8,860 397 69.38 0% 1% 100% 0%
spectral-norm  #2 257.78  5,500 8,848 397 257.74 0% 4% 97% 0%