The Computer Language
Benchmarks Game

all PHP programs & measurements

PHP 7.3.0 (cli) (built: Dec 6 2018 12:47:18) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.0-dev, Copyright (c) 1998-2018 Zend Technologies

source secs N mem gz cpu cpu load
binary-trees  0.76  7 ? 451 ? 0% 44% 72% 5%
binary-trees  0.77  14 15,916 451 0.76 0% 3% 1% 100%
binary-trees  170.67  21 740,328 451 170.53 56% 23% 9% 31%
source secs N mem gz cpu cpu load
binary-trees  #7 0.90  7 ? 751 ? 10% 79% 60% 0%
binary-trees  #7 0.27  14 17,128 751 0.72 85% 63% 52% 73%
binary-trees  #7 68.14  21 1,584,520 751 199.93 79% 75% 73% 86%
source secs N mem gz cpu cpu load
binary-trees  #5 0.53  7 ? 1040 ? 65% 23% 0% 21%
binary-trees  #5 0.39  14 884 1040 1.04 90% 46% 85% 77%
binary-trees  #5 73.54  21 779,912 1040 208.30 75% 96% 33% 88%
source secs N mem gz cpu cpu load
binary-trees  #3 0.71  7 ? 428 ? 17% 46% 72% 1%
binary-trees  #3 0.60  14 22,160 428 0.60 18% 5% 23% 98%
binary-trees  #3 153.31  21 1,557,716 428 153.20 1% 100% 0% 0%
source secs N mem gz cpu cpu load
binary-trees  #2 0.78  7 ? 423 ? 16% 48% 68% 0%
binary-trees  #2 0.72  14 16,172 423 0.72 1% 1% 0% 100%
binary-trees  #2 181.86  21 745,736 423 181.71 4% 100% 1% 3%
source secs N mem gz cpu cpu load
binary-trees  #6 0.87  7 ? 868 ? 60% 5% 31% 29%
binary-trees  #6 0.31  14 50,164 868 1.03 80% 97% 87% 77%
binary-trees  #6 58.93  21 765,500 868 214.32 90% 98% 92% 90%
source secs N mem gz cpu cpu load
binary-trees  #4 0.73  7 ? 770 ? 53% 3% 1% 28%
binary-trees  #4 0.25  14 33,124 770 0.73 76% 73% 73% 81%
binary-trees  #4 107.82  21 1,554,040 770 213.85 82% 81% 76% 84%
source secs N mem gz cpu cpu load
fannkuch-redux  8.26  10 9,532 482 7.56 98% 1% 0% 3%
fannkuch-redux  101.52  11 9,528 482 101.49 0% 100% 1% 0%
fannkuch-redux  1,419.95  12 9,736 482 1,419.61 38% 27% 1% 36%
source secs N mem gz cpu cpu load
fannkuch-redux  #3 2.15  10 9,472 1160 5.09 66% 83% 74% 60%
fannkuch-redux  #3 16.90  11 35,600 1160 66.77 100% 98% 99% 98%
fannkuch-redux  #3 227.59  12 35,536 1160 906.63 100% 99% 99% 100%
source secs N mem gz cpu cpu load
fannkuch-redux  #2 5.47  10 9,284 441 4.72 95% 7% 7% 0%
fannkuch-redux  #2 64.12  11 9,340 441 64.10 51% 0% 1% 49%
fannkuch-redux  #2 899.69  12 9,460 441 899.49 1% 100% 1% 2%
source secs N mem gz cpu cpu load
fasta  #2 1.88  250,000 9,480 1050 1.14 13% 18% 89% 1%
fasta  #2 11.20  2,500,000 9,592 1050 11.20 48% 0% 0% 54%
fasta  #2 94.50  25,000,000 9,500 1050 94.48 0% 100% 1% 0%
source secs N mem gz cpu cpu load
fasta  #3 1.35  250,000 ? 1062 ? 0% 26% 85% 2%
fasta  #3 5.83  2,500,000 9,464 1062 5.83 1% 0% 1% 100%
fasta  #3 56.22  25,000,000 9,632 1062 56.20 2% 100% 0% 1%
source secs N mem gz cpu cpu load
k-nucleotide  #4 1.26  250,000 11,564 1079 1.47 28% 65% 77% 32%
k-nucleotide  #4 4.31  2,500,000 26,060 1079 13.50 81% 78% 90% 71%
k-nucleotide  #4 41.29  25,000,000 250,628 1079 134.20 74% 78% 90% 90%
source secs N mem gz cpu cpu load
mandelbrot  #3 1.45  1,000 9,428 875 1.89 85% 53% 33% 58%
mandelbrot  #3 7.76  4,000 59,088 875 30.94 100% 100% 100% 100%
mandelbrot  #3 118.28  16,000 139,504 875 472.05 100% 100% 100% 100%
source secs N mem gz cpu cpu load
mandelbrot  2.56  1,000 9,372 449 1.84 2% 14% 94% 0%
mandelbrot  29.10  4,000 9,384 449 29.09 1% 0% 0% 100%
mandelbrot  467.73  16,000 9,444 449 467.62 4% 84% 17% 2%
source secs N mem gz cpu cpu load
n-body  #3 3.98  500,000 9,592 1082 3.26 95% 3% 3% 3%
n-body  #3 31.54  5,000,000 9,504 1082 31.54 0% 50% 51% 0%
n-body  #3 333.78  50,000,000 9,400 1082 333.70 44% 30% 1% 27%
source secs N mem gz cpu cpu load
pidigits  #5 0.85  2,000 ? 399 ? 77% 1% 6% 12%
pidigits  #5 0.76  6,000 10,476 399 0.75 1% 100% 0% 0%
pidigits  #5 2.16  10,000 10,896 399 2.16 0% 1% 100% 0%
source secs N mem gz cpu cpu load
pidigits  #3 1.00  2,000 ? 504 ? 33% 5% 2% 40%
pidigits  #3 0.77  6,000 10,640 504 0.77 1% 10% 100% 0%
pidigits  #3 2.18  10,000 10,928 504 2.18 100% 0% 2% 0%
source secs N mem gz cpu cpu load
pidigits  18.63  2,000 9,520 736 17.94 0% 99% 3% 0%
pidigits  185.25  6,000 9,544 736 185.19 30% 0% 1% 70%
pidigits  545.46  10,000 11,736 736 545.31 54% 1% 15% 32%
source secs N mem gz cpu cpu load
pidigits  #4 0.81  2,000 ? 389 ? 75% 5% 0% 16%
pidigits  #4 0.80  6,000 10,548 389 0.80 1% 100% 3% 7%
pidigits  #4 2.19  10,000 10,852 389 2.19 1% 2% 1% 100%
source secs N mem gz cpu cpu load
pidigits  #2 1.06  2,000 ? 545 ? 30% 27% 0% 38%
pidigits  #2 1.19  6,000 10,784 545 1.18 1% 1% 99% 0%
pidigits  #2 3.25  10,000 11,240 545 3.25 1% 2% 0% 100%
regex-redux  #4 Bad Output  50,000
source secs N mem gz cpu cpu load
regex-redux  0.90  50,000 ? 816 ? 2% 51% 81% 4%
regex-redux  0.40  500,000 30,540 816 0.28 62% 22% 32% 33%
regex-redux  2.61  5,000,000 270,552 816 2.44 79% 40% 40% 42%
source secs N mem gz cpu cpu load
reverse-complement  #3 0.81  250,000 ? 438 ? 29% 10% 1% 44%
reverse-complement  #3 12.54  100,000,000 513,344 438 7.51 59% 6% 61% 28%
source secs N mem gz cpu cpu load
reverse-complement  0.81  250,000 ? 312 ? 42% 0% 6% 23%
reverse-complement  15.48  100,000,000 1,475,744 312 15.46 1% 1% 100% 1%
source secs N mem gz cpu cpu load
reverse-complement  #2 1.00  250,000 ? 274 ? 79% 7% 24% 14%
reverse-complement  #2 18.11  100,000,000 1,776,920 274 18.08 100% 1% 1% 0%
source secs N mem gz cpu cpu load
spectral-norm  1.04  500 9,568 1152 1.14 79% 33% 26% 38%
spectral-norm  10.55  3,000 20,828 1152 40.82 97% 97% 98% 97%
spectral-norm  38.56  5,500 20,848 1152 153.24 99% 100% 99% 99%
source secs N mem gz cpu cpu load
spectral-norm  #3 1.29  500 9,588 1210 2.09 83% 45% 41% 57%
spectral-norm  #3 21.82  3,000 20,732 1210 72.59 96% 97% 96% 94%
spectral-norm  #3 62.39  5,500 32,548 1210 245.51 100% 98% 97% 99%
source secs N mem gz cpu cpu load
spectral-norm  #2 2.80  500 9,428 397 2.07 93% 3% 0% 5%
spectral-norm  #2 75.13  3,000 9,548 397 75.11 0% 100% 1% 0%
spectral-norm  #2 248.65  5,500 9,624 397 248.59 23% 0% 1% 78%