The Computer Language
Benchmarks Game

all Python 3 programs & measurements

Python 3.9.2

source secs N mem gz cpu cpu load
binary-trees  #2 0.54  7 7,204 338 0.03 39% 0% 6% 24%
binary-trees  #2 0.69  14 9,828 338 0.69 3% 0% 0% 100%
binary-trees  #2 148.16  21 274,244 338 148.11 0% 0% 0% 100%
source secs N mem gz cpu cpu load
binary-trees  #4 0.96  7 11,572 472 0.13 8% 7% 13% 84%
binary-trees  #4 0.34  14 13,100 472 0.94 74% 65% 75% 82%
binary-trees  #4 48.03  21 462,732 472 173.57 89% 97% 88% 89%
source secs N mem gz cpu cpu load
binary-trees  0.93  7 11,260 589 0.10 5% 4% 14% 75%
binary-trees  0.35  14 14,088 589 0.94 76% 68% 73% 57%
binary-trees  51.07  21 278,324 589 178.15 85% 86% 93% 85%
source secs N mem gz cpu cpu load
binary-trees  #3 0.97  7 11,380 1238 0.09 8% 29% 3% 48%
binary-trees  #3 0.47  14 14,956 1238 1.19 40% 96% 45% 74%
binary-trees  #3 75.49  21 677,620 1238 219.79 66% 69% 66% 92%
source secs N mem gz cpu cpu load
fannkuch-redux  #6 8.10  10 7,568 385 7.50 97% 3% 3% 3%
fannkuch-redux  #6 91.79  11 7,704 385 91.77 100% 0% 0% 0%
fannkuch-redux  #6 1,268.51  12 7,812 385 1,268.25 100% 0% 0% 0%
source secs N mem gz cpu cpu load
fannkuch-redux  #4 3.22  10 12,092 950 8.87 71% 74% 73% 82%
fannkuch-redux  #4 26.38  11 12,020 950 103.92 100% 99% 96% 99%
fannkuch-redux  #4 352.29  12 12,232 950 1,389.92 97% 99% 100% 99%
source secs N mem gz cpu cpu load
fasta  #3 1.14  250,000 8,088 1003 0.63 68% 0% 4% 13%
fasta  #3 6.02  2,500,000 8,000 1003 6.01 100% 3% 1% 0%
fasta  #3 59.29  25,000,000 8,168 1003 59.28 100% 0% 0% 0%
source secs N mem gz cpu cpu load
fasta  #2 1.16  250,000 8,140 1121 0.63 68% 0% 3% 14%
fasta  #2 5.97  2,500,000 8,168 1121 5.96 2% 0% 0% 100%
fasta  #2 58.99  25,000,000 8,216 1121 58.97 0% 100% 0% 0%
source secs N mem gz cpu cpu load
fasta  #5 1.44  250,000 12,412 1947 0.86 58% 1% 16% 36%
fasta  #5 3.90  2,500,000 12,388 1947 7.10 37% 13% 64% 69%
fasta  #5 37.32  25,000,000 846,264 1947 68.58 10% 67% 83% 30%
source secs N mem gz cpu cpu load
fasta  1.38  250,000 8,188 817 0.80 79% 3% 4% 4%
fasta  8.08  2,500,000 8,064 817 8.04 100% 0% 0% 2%
fasta  71.91  25,000,000 8,212 817 71.89 100% 0% 0% 0%
source secs N mem gz cpu cpu load
k-nucleotide  #3 1.67  250,000 13,504 1967 2.00 31% 36% 31% 88%
k-nucleotide  #3 4.71  2,500,000 24,632 1967 17.74 93% 97% 94% 94%
k-nucleotide  #3 46.28  25,000,000 241,108 1967 175.88 94% 97% 95% 96%
source secs N mem gz cpu cpu load
k-nucleotide  #8 1.78  250,000 13,264 655 2.62 47% 41% 48% 53%
k-nucleotide  #8 8.62  2,500,000 55,252 655 25.66 56% 84% 61% 98%
k-nucleotide  #8 86.57  25,000,000 499,100 655 257.94 61% 97% 59% 84%
source secs N mem gz cpu cpu load
k-nucleotide  1.64  250,000 13,568 607 2.59 36% 46% 43% 82%
k-nucleotide  7.50  2,500,000 33,248 607 24.65 81% 63% 92% 95%
k-nucleotide  74.19  25,000,000 323,088 607 253.66 69% 95% 96% 84%
mandelbrot  #5 Failed  1,000
source secs N mem gz cpu cpu load
mandelbrot  #7 1.61  1,000 12,020 688 2.86 47% 47% 43% 84%
mandelbrot  #7 11.54  4,000 11,952 688 43.39 94% 94% 94% 94%
mandelbrot  #7 163.32  16,000 12,080 688 641.05 98% 98% 98% 98%
mandelbrot  #2 Timed Out  1,000
source secs N mem gz cpu cpu load
n-body  #2 6.29  500,000 8,192 1242 5.78 1% 1% 0% 99%
n-body  #2 60.62  5,000,000 8,236 1242 60.61 0% 0% 0% 100%
n-body  #2 597.74  50,000,000 8,232 1242 597.63 0% 0% 0% 100%
source secs N mem gz cpu cpu load
n-body  6.02  500,000 8,076 1196 5.52 94% 0% 1% 7%
n-body  54.41  5,000,000 7,968 1196 54.40 1% 0% 0% 100%
n-body  567.56  50,000,000 8,076 1196 567.46 0% 0% 0% 100%
source secs N mem gz cpu cpu load
pidigits  #4 0.64  2,000 8,132 342 0.16 0% 6% 16% 76%
pidigits  #4 1.34  6,000 8,548 342 1.34 0% 0% 100% 1%
pidigits  #4 3.85  10,000 8,836 342 3.85 0% 0% 100% 1%
source secs N mem gz cpu cpu load
pidigits  #3 0.97  2,000 11,080 567 0.17 3% 3% 53% 16%
pidigits  #3 0.56  6,000 11,556 567 0.56 0% 0% 98% 4%
pidigits  #3 1.28  10,000 12,024 567 1.28 0% 1% 100% 0%
source secs N mem gz cpu cpu load
pidigits  #2 0.66  2,000 9,452 386 0.10 4% 13% 0% 83%
pidigits  #2 0.57  6,000 9,984 386 0.57 4% 100% 2% 0%
pidigits  #2 1.63  10,000 10,452 386 1.63 0% 100% 1% 0%
source secs N mem gz cpu cpu load
regex-redux  #2 2.34  50,000 12,208 1403 0.12 21% 9% 29% 74%
regex-redux  #2 0.30  500,000 17,628 1403 0.33 30% 62% 33% 41%
regex-redux  #2 1.36  5,000,000 111,852 1403 2.63 32% 40% 33% 88%
source secs N mem gz cpu cpu load
regex-redux  0.90  50,000 13,356 512 0.30 25% 11% 46% 3%
regex-redux  1.07  500,000 48,896 512 1.94 44% 27% 27% 90%
regex-redux  9.61  5,000,000 458,000 512 18.39 55% 29% 36% 74%
source secs N mem gz cpu cpu load
reverse-complement  0.57  250,000 7,300 479 0.05 0% 5% 17% 74%
reverse-complement  9.72  100,000,000 1,971,752 479 9.70 0% 0% 100% 0%
source secs N mem gz cpu cpu load
reverse-complement  #4 0.58  250,000 7,664 335 0.06 0% 12% 31% 38%
reverse-complement  #4 12.21  100,000,000 4,020,620 335 12.19 1% 0% 100% 0%
source secs N mem gz cpu cpu load
reverse-complement  #6 0.56  250,000 7,320 814 0.05 7% 9% 0% 79%
reverse-complement  #6 7.20  100,000,000 1,005,184 814 10.69 20% 53% 48% 29%
source secs N mem gz cpu cpu load
reverse-complement  #2 0.58  250,000 7,224 434 0.05 3% 5% 64% 2%
reverse-complement  #2 9.53  100,000,000 1,786,800 434 9.51 0% 0% 100% 0%
source secs N mem gz cpu cpu load
spectral-norm  #8 2.28  500 11,912 407 4.62 50% 54% 49% 85%
spectral-norm  #8 35.51  3,000 12,688 407 138.84 98% 98% 98% 98%
spectral-norm  #8 120.99  5,500 13,424 407 479.36 99% 99% 99% 99%
source secs N mem gz cpu cpu load
spectral-norm  #7 2.20  500 11,956 417 4.61 59% 51% 49% 78%
spectral-norm  #7 37.48  3,000 39,464 417 147.43 98% 98% 98% 98%
spectral-norm  #7 124.94  5,500 13,436 417 495.44 99% 99% 99% 99%
source secs N mem gz cpu cpu load
spectral-norm  #6 4.18  500 7,916 328 3.65 4% 0% 1% 96%
spectral-norm  #6 134.44  3,000 9,020 328 134.40 100% 0% 0% 1%
spectral-norm  #6 453.49  5,500 9,672 328 453.36 100% 0% 0% 0%