The Computer Language
Benchmarks Game

all PHP programs & measurements

PHP 8.0.0 (cli) (built: Nov 26 2020 09:02:29) ( NTS )
Copyright (c) The PHP Group
Zend Engine v4.0.0-dev, Copyright (c) Zend Technologies

binary-trees  #3 Failed  7
source secs N mem gz cpu cpu load
binary-trees  #4 0.60  7 10,928 779 0.03 2% 10% 10% 70%
binary-trees  #4 0.10  14 92,496 779 0.23 33% 63% 82% 44%
binary-trees  #4 21.40  21 1,558,524 779 63.74 56% 85% 86% 73%
source secs N mem gz cpu cpu load
binary-trees  #6 0.52  7 10,836 868 0.03 7% 13% 0% 73%
binary-trees  #6 0.15  14 75,816 868 0.43 63% 93% 73% 67%
binary-trees  #6 27.89  21 804,252 868 90.66 78% 78% 98% 78%
source secs N mem gz cpu cpu load
binary-trees  #7 0.53  7 11,456 760 0.03 6% 22% 0% 47%
binary-trees  #7 0.09  14 92,164 760 0.22 63% 88% 70% 44%
binary-trees  #7 18.64  21 1,588,704 760 66.92 89% 90% 96% 86%
source secs N mem gz cpu cpu load
binary-trees  0.56  7 10,648 451 0.02 2% 7% 34% 44%
binary-trees  0.26  14 18,008 451 0.25 0% 0% 100% 4%
binary-trees  63.06  21 747,960 451 63.02 2% 2% 3% 100%
source secs N mem gz cpu cpu load
binary-trees  #5 0.57  7 11,264 1040 0.03 2% 9% 11% 65%
binary-trees  #5 0.17  14 52,876 1040 0.41 76% 78% 35% 75%
binary-trees  #5 33.78  21 777,220 1040 85.90 75% 80% 47% 60%
source secs N mem gz cpu cpu load
binary-trees  #2 0.53  7 10,436 423 0.02 0% 0% 4% 93%
binary-trees  #2 0.26  14 18,136 423 0.26 8% 0% 0% 100%
binary-trees  #2 64.14  21 747,932 423 64.02 4% 2% 97% 2%
source secs N mem gz cpu cpu load
fannkuch-redux  #3 1.02  10 12,416 1160 1.44 45% 48% 68% 47%
fannkuch-redux  #3 4.39  11 42,112 1160 17.41 100% 100% 99% 100%
fannkuch-redux  #3 63.18  12 44,168 1160 246.38 99% 99% 100% 99%
source secs N mem gz cpu cpu load
fannkuch-redux  #2 1.71  10 11,348 441 1.19 0% 3% 86% 2%
fannkuch-redux  #2 15.03  11 12,172 441 15.03 4% 2% 100% 1%
fannkuch-redux  #2 213.70  12 12,008 441 213.58 2% 2% 100% 2%
source secs N mem gz cpu cpu load
fannkuch-redux  2.08  10 11,472 482 1.55 2% 84% 0% 2%
fannkuch-redux  19.00  11 12,216 482 19.00 4% 100% 1% 1%
fannkuch-redux  255.57  12 12,104 482 255.52 80% 22% 2% 3%
source secs N mem gz cpu cpu load
fasta  #3 0.74  250,000 11,664 1062 0.24 0% 7% 8% 77%
fasta  #3 2.62  2,500,000 12,140 1062 2.62 11% 2% 10% 100%
fasta  #3 22.82  25,000,000 12,356 1062 22.82 3% 2% 2% 100%
source secs N mem gz cpu cpu load
fasta  #2 0.92  250,000 11,396 1050 0.40 66% 0% 4% 12%
fasta  #2 3.83  2,500,000 11,380 1050 3.76 5% 1% 4% 98%
fasta  #2 30.73  25,000,000 11,416 1050 30.73 3% 1% 2% 100%
source secs N mem gz cpu cpu load
k-nucleotide  #4 0.86  250,000 14,500 1079 0.73 31% 53% 29% 92%
k-nucleotide  #4 2.46  2,500,000 27,784 1079 6.87 59% 81% 65% 87%
k-nucleotide  #4 20.15  25,000,000 254,792 1079 67.68 91% 96% 80% 76%
source secs N mem gz cpu cpu load
mandelbrot  0.87  1,000 11,452 449 0.36 5% 54% 0% 34%
mandelbrot  5.44  4,000 11,224 449 5.43 3% 100% 1% 2%
mandelbrot  87.65  16,000 12,176 449 87.63 1% 2% 3% 100%
source secs N mem gz cpu cpu load
mandelbrot  #3 0.69  1,000 12,060 875 0.43 68% 16% 14% 25%
mandelbrot  #3 1.57  4,000 58,804 875 6.12 99% 97% 97% 98%
mandelbrot  #3 24.89  16,000 135,480 875 97.32 100% 100% 99% 100%
source secs N mem gz cpu cpu load
n-body  #3 1.26  500,000 12,224 1082 0.74 5% 14% 8% 96%
n-body  #3 7.19  5,000,000 11,968 1082 7.18 5% 4% 6% 100%
n-body  #3 71.75  50,000,000 12,072 1082 71.73 3% 1% 2% 100%
source secs N mem gz cpu cpu load
pidigits  #4 0.84  2,000 11,588 389 0.06 65% 17% 15% 26%
pidigits  #4 0.34  6,000 12,888 389 0.34 0% 0% 100% 9%
pidigits  #4 0.94  10,000 13,080 389 0.93 0% 1% 100% 0%
source secs N mem gz cpu cpu load
pidigits  11.24  2,000 12,360 750 10.70 1% 0% 1% 100%
pidigits  110.97  6,000 13,428 750 110.82 0% 50% 51% 1%
pidigits  326.54  10,000 14,496 750 326.44 0% 0% 0% 100%
source secs N mem gz cpu cpu load
pidigits  #3 0.57  2,000 11,636 504 0.06 5% 9% 9% 73%
pidigits  #3 0.32  6,000 12,992 504 0.32 3% 100% 0% 0%
pidigits  #3 0.94  10,000 13,280 504 0.94 0% 100% 1% 0%
source secs N mem gz cpu cpu load
pidigits  #2 0.63  2,000 12,428 545 0.09 45% 7% 26% 75%
pidigits  #2 0.52  6,000 13,188 545 0.52 0% 2% 0% 98%
pidigits  #2 1.44  10,000 13,764 545 1.44 100% 0% 0% 1%
source secs N mem gz cpu cpu load
pidigits  #5 0.55  2,000 11,056 399 0.06 0% 0% 46% 24%
pidigits  #5 0.31  6,000 12,752 399 0.31 3% 3% 0% 100%
pidigits  #5 0.91  10,000 13,196 399 0.91 2% 0% 3% 100%
source secs N mem gz cpu cpu load
regex-redux  0.63  50,000 11,492 816 0.04 8% 45% 10% 17%
regex-redux  0.26  500,000 27,772 816 0.19 27% 52% 54% 31%
regex-redux  1.73  5,000,000 162,348 816 1.64 37% 88% 44% 39%
source secs N mem gz cpu cpu load
reverse-complement  #2 0.53  250,000 11,552 281 0.05 48% 0% 0% 11%
reverse-complement  #2 11.33  100,000,000 1,785,868 281 11.31 1% 1% 100% 1%
source secs N mem gz cpu cpu load
reverse-complement  0.61  250,000 12,200 318 0.05 3% 25% 7% 33%
reverse-complement  9.63  100,000,000 1,487,604 318 9.62 100% 0% 0% 0%
source secs N mem gz cpu cpu load
reverse-complement  #3 0.63  250,000 11,644 446 0.03 5% 29% 31% 5%
reverse-complement  #3 7.06  100,000,000 534,336 446 3.71 14% 49% 40% 65%
source secs N mem gz cpu cpu load
spectral-norm  #3 0.65  500 12,236 1210 0.64 31% 30% 34% 47%
spectral-norm  #3 5.57  3,000 31,804 1210 21.51 99% 98% 97% 99%
spectral-norm  #3 18.77  5,500 37,668 1210 72.13 98% 98% 98% 98%
source secs N mem gz cpu cpu load
spectral-norm  #2 1.09  500 12,320 397 0.60 16% 74% 10% 12%
spectral-norm  #2 20.19  3,000 12,372 397 20.18 3% 100% 2% 4%
spectral-norm  #2 67.74  5,500 13,172 397 67.72 3% 100% 1% 3%
source secs N mem gz cpu cpu load
spectral-norm  0.63  500 12,296 1152 0.28 17% 38% 11% 17%
spectral-norm  2.37  3,000 31,816 1152 8.72 98% 96% 94% 96%
spectral-norm  7.51  5,500 35,364 1152 29.14 99% 98% 98% 98%