The Computer Language
Benchmarks Game

all PHP programs & measurements

PHP 7.3.5 (cli) (built: May 8 2019 14:40:28) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.5, Copyright (c) 1998-2018 Zend Technologies

source secs N mem gz cpu cpu load
binary-trees  0.82  7 2,864 451 0.02 2% 0% 67% 27%
binary-trees  0.75  14 13,808 451 0.75 3% 3% 1% 100%
binary-trees  170.05  21 738,516 451 169.89 0% 100% 1% 0%
source secs N mem gz cpu cpu load
binary-trees  #7 0.93  7 6,836 751 0.02 40% 91% 3% 1%
binary-trees  #7 0.24  14 15,836 751 0.64 71% 57% 81% 65%
binary-trees  #7 50.51  21 1,584,428 751 181.95 96% 91% 91% 85%
source secs N mem gz cpu cpu load
binary-trees  #5 1.04  7 5,984 1040 0.03 38% 45% 17% 13%
binary-trees  #5 0.38  14 28,344 1040 1.02 89% 75% 87% 51%
binary-trees  #5 73.32  21 789,828 1040 205.40 64% 91% 91% 42%
source secs N mem gz cpu cpu load
binary-trees  #3 0.83  7 2,896 428 0.02 71% 26% 28% 1%
binary-trees  #3 0.59  14 20,248 428 0.59 3% 100% 34% 2%
binary-trees  #3 152.83  21 1,557,284 428 152.69 1% 0% 0% 100%
source secs N mem gz cpu cpu load
binary-trees  #2 1.25  7 2,784 423 0.02 44% 14% 25% 28%
binary-trees  #2 0.73  14 13,892 423 0.73 3% 0% 5% 100%
binary-trees  #2 182.28  21 743,752 423 182.10 1% 1% 0% 100%
source secs N mem gz cpu cpu load
binary-trees  #6 0.79  7 8 868 0.02 42% 80% 3% 3%
binary-trees  #6 0.31  14 52,440 868 1.03 87% 97% 77% 84%
binary-trees  #6 57.59  21 788,836 868 211.96 91% 91% 91% 97%
source secs N mem gz cpu cpu load
binary-trees  #4 0.83  7 2,856 770 0.02 4% 0% 77% 23%
binary-trees  #4 0.25  14 15,788 770 0.66 54% 56% 60% 96%
binary-trees  #4 60.87  21 1,554,320 770 188.55 67% 72% 86% 86%
source secs N mem gz cpu cpu load
fannkuch-redux  8.42  10 7,960 482 7.58 1% 2% 99% 1%
fannkuch-redux  98.64  11 8,000 482 98.61 62% 1% 39% 0%
fannkuch-redux  1,350.48  12 7,776 482 1,350.10 1% 1% 9% 92%
source secs N mem gz cpu cpu load
fannkuch-redux  #3 2.18  10 7,872 1160 4.91 66% 56% 69% 69%
fannkuch-redux  #3 16.09  11 21,716 1160 63.79 99% 100% 99% 100%
fannkuch-redux  #3 226.26  12 21,980 1160 901.24 100% 99% 100% 100%
source secs N mem gz cpu cpu load
fannkuch-redux  #2 5.44  10 7,740 441 4.74 3% 0% 97% 3%
fannkuch-redux  #2 64.20  11 7,616 441 64.18 1% 1% 0% 100%
fannkuch-redux  #2 933.78  12 7,908 441 933.54 1% 100% 0% 0%
source secs N mem gz cpu cpu load
fasta  #2 1.74  250,000 7,960 1050 1.14 95% 6% 0% 2%
fasta  #2 11.53  2,500,000 7,848 1050 11.36 2% 1% 5% 99%
fasta  #2 96.03  25,000,000 8,064 1050 96.00 1% 28% 74% 1%
source secs N mem gz cpu cpu load
fasta  #3 1.45  250,000 7,944 1062 0.59 10% 3% 19% 53%
fasta  #3 5.77  2,500,000 7,808 1062 5.77 0% 100% 1% 1%
fasta  #3 56.53  25,000,000 8,072 1062 56.51 0% 0% 1% 100%
source secs N mem gz cpu cpu load
k-nucleotide  #4 1.18  250,000 10,548 1079 1.44 34% 36% 56% 36%
k-nucleotide  #4 4.17  2,500,000 28,812 1079 13.45 90% 77% 95% 69%
k-nucleotide  #4 41.23  25,000,000 176,076 1079 133.42 90% 72% 71% 94%
source secs N mem gz cpu cpu load
mandelbrot  #3 1.36  1,000 8,416 875 1.88 91% 51% 39% 35%
mandelbrot  #3 7.80  4,000 45,872 875 31.08 100% 99% 99% 100%
mandelbrot  #3 117.20  16,000 127,020 875 467.89 100% 100% 100% 100%
source secs N mem gz cpu cpu load
mandelbrot  2.72  1,000 7,840 449 1.91 15% 91% 0% 0%
mandelbrot  29.15  4,000 7,692 449 29.14 0% 0% 2% 100%
mandelbrot  476.78  16,000 7,640 449 476.66 57% 43% 1% 0%
source secs N mem gz cpu cpu load
n-body  #3 4.28  500,000 7,936 1082 3.34 97% 4% 8% 0%
n-body  #3 31.34  5,000,000 7,872 1082 31.33 100% 0% 2% 0%
n-body  #3 312.82  50,000,000 8,032 1082 312.73 57% 0% 0% 43%
source secs N mem gz cpu cpu load
pidigits  #5 0.89  2,000 2,892 399 0.11 0% 3% 26% 38%
pidigits  #5 0.76  6,000 8,716 399 0.76 4% 100% 3% 0%
pidigits  #5 2.16  10,000 9,112 399 2.15 100% 2% 2% 0%
source secs N mem gz cpu cpu load
pidigits  #3 1.11  2,000 2,840 504 0.11 0% 1% 55% 24%
pidigits  #3 0.78  6,000 9,020 504 0.77 100% 1% 3% 1%
pidigits  #3 2.19  10,000 9,172 504 2.18 0% 100% 1% 0%
source secs N mem gz cpu cpu load
pidigits  18.72  2,000 8,384 736 17.90 2% 0% 3% 97%
pidigits  185.06  6,000 9,488 736 184.99 0% 0% 1% 100%
pidigits  544.64  10,000 10,480 736 544.48 100% 1% 0% 0%
source secs N mem gz cpu cpu load
pidigits  #4 0.80  2,000 2,796 389 0.13 0% 1% 25% 30%
pidigits  #4 0.81  6,000 8,696 389 0.81 1% 9% 1% 100%
pidigits  #4 2.18  10,000 9,172 389 2.18 4% 6% 100% 0%
source secs N mem gz cpu cpu load
pidigits  #2 1.00  2,000 2,796 545 0.17 1% 1% 40% 37%
pidigits  #2 1.20  6,000 9,224 545 1.19 100% 1% 1% 1%
pidigits  #2 3.25  10,000 9,480 545 3.25 0% 100% 1% 1%
regex-redux  #4 Bad Output  50,000
source secs N mem gz cpu cpu load
regex-redux  0.79  50,000 2,860 816 0.05 4% 5% 28% 34%
regex-redux  0.62  500,000 13,940 816 0.28 11% 21% 70% 49%
regex-redux  2.80  5,000,000 158,000 816 2.66 23% 37% 43% 93%
source secs N mem gz cpu cpu load
reverse-complement  #3 0.98  250,000 2,928 438 0.04 4% 4% 87% 22%
reverse-complement  #3 13.60  100,000,000 528,064 438 7.98 33% 33% 26% 62%
source secs N mem gz cpu cpu load
reverse-complement  0.76  250,000 2,964 312 0.05 1% 3% 15% 27%
reverse-complement  17.46  100,000,000 1,469,780 312 17.42 1% 1% 0% 100%
source secs N mem gz cpu cpu load
reverse-complement  #2 0.95  250,000 2,876 274 0.06 1% 1% 39% 27%
reverse-complement  #2 21.37  100,000,000 1,779,800 274 21.32 1% 100% 0% 0%
source secs N mem gz cpu cpu load
spectral-norm  0.99  500 7,136 1152 1.15 50% 73% 35% 31%
spectral-norm  9.96  3,000 22,008 1152 39.23 99% 98% 99% 98%
spectral-norm  33.12  5,500 24,140 1152 131.85 100% 100% 100% 100%
source secs N mem gz cpu cpu load
spectral-norm  #3 1.59  500 8,284 1210 2.03 33% 44% 51% 68%
spectral-norm  #3 17.82  3,000 23,656 1210 70.71 99% 99% 99% 99%
spectral-norm  #3 60.44  5,500 25,944 1210 240.82 100% 100% 100% 100%
source secs N mem gz cpu cpu load
spectral-norm  #2 2.81  500 7,808 397 2.00 1% 1% 92% 8%
spectral-norm  #2 70.69  3,000 8,356 397 70.67 100% 1% 0% 0%
spectral-norm  #2 236.98  5,500 8,848 397 236.92 0% 0% 100% 0%