The Computer Language
23.03 Benchmarks Game

all PHP programs & measurements

PHP 8.2.1 (cli)
(built: Jan 13 2023 15:31:11) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.2.1,
with Zend OPcache v8.2.1,
Copyright (c) Zend Technologies

source secs N mem gz cpu secs cpu load
binary-trees  #7 0.44  7 13,036 760 0.03 2% 6% 2% 0%
binary-trees  #7 0.08  14 20,508 760 0.19 50% 100% 57% 50%
binary-trees  #7 15.05  21 948,676 760 53.85 96% 81% 90% 89%
source secs N mem gz cpu secs cpu load
binary-trees  #6 0.50  7 13,080 868 0.04 2% 0% 0% 0%
binary-trees  #6 0.14  14 19,580 868 0.41 73% 66% 86% 66%
binary-trees  #6 26.81  21 805,532 868 88.08 78% 76% 98% 76%
source secs N mem gz cpu secs cpu load
binary-trees  0.47  7 12,972 451 0.03 0% 6% 0% 0%
binary-trees  0.25  14 19,032 451 0.25 0% 0% 100% 0%
binary-trees  61.61  21 748,832 451 61.60 1% 100% 2% 1%
source secs N mem gz cpu secs cpu load
binary-trees  #5 0.49  7 13,348 1040 0.04 0% 6% 0% 0%
binary-trees  #5 0.16  14 19,760 1040 0.40 18% 68% 81% 76%
binary-trees  #5 32.52  21 805,504 1040 84.00 78% 89% 10% 79%
source secs N mem gz cpu secs cpu load
binary-trees  #2 0.51  7 12,968 423 0.03 3% 1% 0% 3%
binary-trees  #2 0.25  14 18,884 423 0.25 0% 0% 0% 100%
binary-trees  #2 61.41  21 748,808 423 61.39 0% 94% 0% 6%
source secs N mem gz cpu secs cpu load
binary-trees  #4 0.52  7 13,008 779 0.03 1% 4% 1% 1%
binary-trees  #4 0.09  14 20,380 779 0.20 75% 54% 44% 25%
binary-trees  #4 17.63  21 918,536 779 54.47 89% 74% 71% 73%
source secs N mem gz cpu secs cpu load
binary-trees  #3 0.56  7 12,948 428 0.03 0% 5% 0% 1%
binary-trees  #3 0.18  14 20,272 428 0.17 0% 0% 100% 5%
binary-trees  #3 45.39  21 921,556 428 45.38 0% 100% 0% 0%
source secs N mem gz cpu secs cpu load
fannkuch-redux  #4 0.90  10 13,192 1162 1.27 36% 35% 34% 34%
fannkuch-redux  #4 4.05  11 13,484 1162 16.01 99% 99% 98% 98%
fannkuch-redux  #4 54.97  12 13,440 1162 217.94 99% 99% 98% 100%
source secs N mem gz cpu secs cpu load
fannkuch-redux  1.96  10 13,028 482 1.40 0% 0% 0% 71%
fannkuch-redux  16.47  11 13,040 482 16.46 0% 99% 0% 0%
fannkuch-redux  223.52  12 12,988 482 223.42 0% 0% 0% 100%
source secs N mem gz cpu secs cpu load
fannkuch-redux  #2 1.61  10 12,992 441 1.09 0% 0% 0% 67%
fannkuch-redux  #2 13.26  11 13,048 441 13.26 0% 0% 0% 100%
fannkuch-redux  #2 187.39  12 12,976 441 187.38 100% 0% 0% 0%
source secs N mem gz cpu secs cpu load
fannkuch-redux  #3 0.87  10 13,152 1160 1.26 35% 37% 39% 36%
fannkuch-redux  #3 3.94  11 13,384 1160 15.64 99% 99% 99% 98%
fannkuch-redux  #3 55.84  12 13,500 1160 222.26 99% 99% 99% 100%
source secs N mem gz cpu secs cpu load
fasta  #2 0.87  250,000 12,984 1050 0.42 0% 0% 49% 0%
fasta  #2 3.63  2,500,000 13,000 1050 3.63 0% 0% 0% 100%
fasta  #2 28.62  25,000,000 13,048 1050 28.61 0% 0% 100% 0%
source secs N mem gz cpu secs cpu load
fasta  #3 0.87  250,000 13,004 1062 0.28 0% 1% 34% 0%
fasta  #3 2.21  2,500,000 13,064 1062 2.19 0% 0% 99% 0%
fasta  #3 21.34  25,000,000 13,084 1062 21.34 0% 0% 100% 0%
source secs N mem gz cpu secs cpu load
k-nucleotide  #4 0.75  250,000 24,812 1079 0.77 21% 29% 32% 22%
k-nucleotide  #4 2.55  2,500,000 40,872 1079 7.27 72% 71% 88% 55%
k-nucleotide  #4 20.80  25,000,000 260,644 1079 70.63 99% 79% 70% 90%
source secs N mem gz cpu secs cpu load
mandelbrot  #3 0.75  1,000 13,368 875 0.41 14% 15% 12% 18%
mandelbrot  #3 1.50  4,000 15,064 875 5.83 98% 99% 99% 94%
mandelbrot  #3 23.25  16,000 48,484 875 92.76 99% 99% 99% 99%
source secs N mem gz cpu secs cpu load
mandelbrot  0.88  1,000 12,920 449 0.40 0% 45% 0% 0%
mandelbrot  5.42  4,000 12,984 449 5.42 0% 100% 0% 0%
mandelbrot  86.88  16,000 13,016 449 86.87 0% 100% 0% 0%
source secs N mem gz cpu secs cpu load
n-body  #3 1.31  500,000 13,036 1082 0.72 0% 54% 0% 0%
n-body  #3 6.63  5,000,000 13,084 1082 6.62 99% 0% 0% 0%
n-body  #3 65.75  50,000,000 13,100 1082 65.74 0% 0% 100% 0%
source secs N mem gz cpu secs cpu load
pidigits  #3 0.50  2,000 13,680 504 0.07 2% 0% 0% 10%
pidigits  #3 0.35  6,000 14,000 504 0.35 100% 2% 0% 0%
pidigits  #3 0.92  10,000 14,324 504 0.92 0% 100% 0% 0%
source secs N mem gz cpu secs cpu load
pidigits  #5 0.67  2,000 13,596 399 0.10 12% 0% 0% 0%
pidigits  #5 0.34  6,000 13,880 399 0.34 0% 0% 100% 0%
pidigits  #5 0.90  10,000 14,248 399 0.90 0% 1% 100% 0%
source secs N mem gz cpu secs cpu load
pidigits  #2 0.61  2,000 13,752 545 0.13 1% 0% 20% 1%
pidigits  #2 0.51  6,000 14,224 545 0.51 1% 0% 98% 0%
pidigits  #2 1.38  10,000 14,636 545 1.38 0% 100% 0% 0%
source secs N mem gz cpu secs cpu load
pidigits  #4 0.58  2,000 13,596 389 0.11 18% 0% 0% 0%
pidigits  #4 0.37  6,000 13,912 389 0.37 0% 0% 100% 0%
pidigits  #4 0.91  10,000 14,216 389 0.91 0% 100% 0% 0%
source secs N mem gz cpu secs cpu load
pidigits  11.47  2,000 13,480 750 11.01 0% 1% 0% 96%
pidigits  113.36  6,000 14,540 750 113.35 0% 0% 100% 0%
pidigits  334.16  10,000 15,344 750 334.14 0% 100% 0% 0%
source secs N mem gz cpu secs cpu load
regex-redux  0.56  50,000 15,116 816 0.06 7% 7% 1% 0%
regex-redux  0.25  500,000 33,484 816 0.19 48% 24% 28% 53%
regex-redux  1.82  5,000,000 194,824 816 1.71 42% 85% 41% 28%
source secs N mem gz cpu secs cpu load
reverse-complement  #3 0.65  250,000 14,280 446 0.05 3% 3% 7% 1%
reverse-complement  #3 7.09  100,000,001 536,544 446 3.69 52% 21% 52% 32%
source secs N mem gz cpu secs cpu load
reverse-complement  0.56  250,000 16,864 318 0.07 14% 0% 0% 0%
reverse-complement  9.25  100,000,001 1,489,448 318 9.24 0% 0% 0% 100%
source secs N mem gz cpu secs cpu load
reverse-complement  #2 0.52  250,000 17,392 281 0.07 1% 0% 0% 11%
reverse-complement  #2 10.91  100,000,001 1,787,268 281 10.91 100% 0% 0% 0%
source secs N mem gz cpu secs cpu load
simple  #3 1.18  1,000 12,960 412 0.70 58% 3% 0% 0%
simple  #3 10.10  4,000 13,040 412 10.10 1% 2% 5% 100%
simple  #3 163.38  16,000 13,004 412 163.32 100% 0% 0% 0%
source secs N mem gz cpu secs cpu load
simple  1.46  1,000 12,972 384 0.85 0% 0% 0% 59%
simple  12.68  4,000 12,988 384 12.66 99% 0% 0% 0%
simple  204.22  16,000 12,976 384 204.18 0% 1% 0% 99%
source secs N mem gz cpu secs cpu load
simple  #2 1.34  1,000 12,936 391 0.81 0% 60% 0% 0%
simple  #2 11.92  4,000 12,976 391 11.92 0% 0% 100% 0%
simple  #2 143.01  16,000 12,992 391 142.93 0% 0% 0% 100%
source secs N mem gz cpu secs cpu load
spectral-norm  #3 0.67  500 13,328 1210 0.61 22% 25% 21% 20%
spectral-norm  #3 4.83  3,000 13,548 1210 19.00 99% 99% 99% 95%
spectral-norm  #3 16.17  5,500 14,188 1210 63.74 99% 99% 99% 96%
source secs N mem gz cpu secs cpu load
spectral-norm  #2 1.02  500 12,956 397 0.50 15% 3% 8% 50%
spectral-norm  #2 17.03  3,000 13,292 397 17.03 0% 0% 100% 0%
spectral-norm  #2 57.19  5,500 13,528 397 57.19 0% 0% 100% 0%
source secs N mem gz cpu secs cpu load
spectral-norm  0.60  500 13,248 1152 0.29 14% 11% 11% 11%
spectral-norm  2.05  3,000 13,652 1152 8.06 98% 98% 98% 99%
spectral-norm  6.81  5,500 14,120 1152 26.92 98% 98% 99% 99%
source secs N mem gz cpu secs cpu load
too simple  0.59  1,000,000 12,712 144 0.07 0% 0% 0% 13%
too simple  4.57  100,000,000 12,824 144 4.57 0% 0% 100% 3%
too simple  492.31  10,000,000,000 12,772 144 492.30 0% 0% 99% 0%