The Computer Language
22.05 Benchmarks Game

all Swift programs & measurements

Swift version 5.7-dev
(LLVM a177fc627109410,
Swift 31967c6df177cce)

source secs N mem gz cpu cpu load
binary-trees  #5 0.83  7 11,964 806 0.03 60% 20% 7% 0%
binary-trees  #5 0.08  14 1,660 806 0.21 89% 75% 63% 50%
binary-trees  #5 13.84  21 733,388 806 41.37 73% 95% 62% 70%
source secs N mem gz cpu cpu load
binary-trees  0.81  7 12,016 714 0.03 2% 35% 9% 17%
binary-trees  0.12  14 17,568 714 0.30 45% 82% 92% 55%
binary-trees  19.89  21 733,908 714 59.11 95% 72% 69% 62%
binary-trees  #9 Make Error  7
source secs N mem gz cpu cpu load
binary-trees  #4 0.78  7 12,176 765 0.03 59% 5% 9% 17%
binary-trees  #4 0.11  14 15,276 765 0.31 75% 55% 82% 100%
binary-trees  #4 19.08  21 700,512 765 60.93 100% 79% 75% 67%
source secs N mem gz cpu cpu load
binary-trees  #2 0.78  7 12,008 816 0.03 4% 5% 30% 10%
binary-trees  #2 0.08  14 1,532 816 0.21 100% 57% 50% 89%
binary-trees  #2 13.50  21 699,876 816 44.09 79% 85% 65% 100%
source secs N mem gz cpu cpu load
binary-trees  #3 0.81  7 12,024 862 0.03 4% 2% 36% 13%
binary-trees  #3 0.09  14 1,636 862 0.23 88% 88% 43% 63%
binary-trees  #3 13.49  21 700,092 862 43.45 82% 76% 65% 100%
source secs N mem gz cpu cpu load
fannkuch-redux  0.63  10 5,852 451 0.27 10% 74% 3% 3%
fannkuch-redux  2.73  11 6,424 451 2.73 5% 100% 0% 0%
fannkuch-redux  35.27  12 6,456 451 35.27 0% 1% 0% 100%
source secs N mem gz cpu cpu load
fannkuch-redux  #3 0.47  10 5,860 1097 0.21 80% 25% 24% 11%
fannkuch-redux  #3 0.61  11 6,452 1097 2.37 100% 100% 97% 98%
fannkuch-redux  #3 7.97  12 6,644 1097 31.59 98% 100% 100% 98%
source secs N mem gz cpu cpu load
fasta  0.55  250,000 6,560 1526 0.10 11% 9% 5% 46%
fasta  0.48  2,500,000 6,660 1526 0.48 0% 0% 100% 2%
fasta  4.52  25,000,000 6,908 1526 4.52 0% 0% 100% 0%
source secs N mem gz cpu cpu load
fasta  #2 0.47  250,000 5,920 1945 0.06 80% 40% 4% 13%
fasta  #2 0.26  2,500,000 7,144 1945 0.36 35% 22% 74% 4%
fasta  #2 2.22  25,000,000 7,440 1945 3.17 18% 8% 32% 72%
source secs N mem gz cpu cpu load
fasta  #3 0.91  250,000 17,396 2090 0.11 10% 20% 3% 53%
fasta  #3 0.20  2,500,000 27,352 2090 0.51 72% 55% 65% 70%
fasta  #3 1.40  25,000,000 26,916 2090 4.64 78% 77% 80% 96%
k-nucleotide  Make Error  250,000
source secs N mem gz cpu cpu load
k-nucleotide  #2 1.34  250,000 64,908 1367 0.81 85% 19% 18% 16%
k-nucleotide  #2 1.89  2,500,000 75,652 1367 5.59 76% 84% 78% 73%
k-nucleotide  #2 13.68  25,000,000 257,052 1367 52.46 98% 96% 96% 95%
source secs N mem gz cpu cpu load
mandelbrot  0.51  1,000 5,676 394 0.12 20% 65% 0% 0%
mandelbrot  1.66  4,000 6,332 394 1.66 100% 0% 0% 2%
mandelbrot  26.23  16,000 6,484 394 26.22 100% 0% 0% 0%
mandelbrot  #3 Bad Output  1,000
source secs N mem gz cpu cpu load
mandelbrot  #5 0.41  1,000 5,924 659 0.12 9% 29% 44% 7%
mandelbrot  #5 0.47  4,000 9,616 659 1.70 89% 89% 89% 94%
mandelbrot  #5 7.30  16,000 41,620 659 26.91 100% 90% 90% 90%
source secs N mem gz cpu cpu load
mandelbrot  #7 0.85  1,000 12,868 1140 0.06 2% 20% 38% 7%
mandelbrot  #7 0.10  4,000 13,456 1140 0.35 89% 90% 100% 89%
mandelbrot  #7 1.33  16,000 41,804 1140 5.29 99% 100% 99% 99%
source secs N mem gz cpu cpu load
mandelbrot  #6 0.74  1,000 12,164 1141 0.05 15% 36% 3% 4%
mandelbrot  #6 0.10  4,000 14,200 1141 0.36 90% 100% 90% 89%
mandelbrot  #6 1.37  16,000 44,504 1141 5.43 100% 99% 99% 99%
source secs N mem gz cpu cpu load
n-body  #6 0.60  500,000 5,796 1194 0.11 3% 5% 59% 14%
n-body  #6 0.63  5,000,000 6,312 1194 0.62 0% 0% 2% 100%
n-body  #6 6.11  50,000,000 6,356 1194 6.11 0% 0% 100% 0%
source secs N mem gz cpu cpu load
n-body  #4 0.90  500,000 13,724 1355 0.11 91% 3% 8% 0%
n-body  #4 0.55  5,000,000 10,804 1355 0.54 100% 2% 0% 0%
n-body  #4 5.28  50,000,000 14,076 1355 5.28 1% 0% 100% 0%
source secs N mem gz cpu cpu load
n-body  #9 3.78  500,000 13,460 1526 2.99 2% 1% 86% 1%
n-body  #9 29.29  5,000,000 14,044 1526 29.28 0% 1% 100% 0%
n-body  #9 292.57  50,000,000 14,032 1526 292.55 100% 0% 0% 0%
source secs N mem gz cpu cpu load
n-body  #7 0.84  500,000 13,524 1326 0.12 0% 5% 40% 8%
n-body  #7 0.55  5,000,000 10,732 1326 0.55 0% 2% 0% 100%
n-body  #7 5.33  50,000,000 14,024 1326 5.33 0% 0% 100% 0%
source secs N mem gz cpu cpu load
n-body  #5 0.94  500,000 13,636 1365 0.08 0% 51% 1% 9%
n-body  #5 0.55  5,000,000 10,800 1365 0.54 0% 0% 5% 100%
n-body  #5 5.29  50,000,000 10,800 1365 5.29 1% 0% 0% 100%
source secs N mem gz cpu cpu load
n-body  #2 0.50  500,000 5,640 1192 0.14 8% 14% 60% 8%
n-body  #2 0.88  5,000,000 6,252 1192 0.88 0% 6% 100% 2%
n-body  #2 8.68  50,000,000 6,420 1192 8.68 0% 1% 100% 0%
source secs N mem gz cpu cpu load
n-body  #3 0.51  500,000 5,588 1204 0.13 14% 4% 67% 0%
n-body  #3 0.82  5,000,000 6,356 1204 0.82 100% 1% 1% 0%
n-body  #3 8.12  50,000,000 6,452 1204 8.11 0% 100% 0% 0%
source secs N mem gz cpu cpu load
n-body  #8 0.89  500,000 13,560 1681 0.12 19% 1% 26% 14%
n-body  #8 0.58  5,000,000 10,716 1681 0.58 0% 100% 0% 2%
n-body  #8 5.70  50,000,000 14,028 1681 5.70 2% 2% 7% 100%
source secs N mem gz cpu cpu load
pidigits  #2 0.48  2,000 7,140 600 0.07 85% 6% 13% 8%
pidigits  #2 0.27  6,000 7,436 600 0.26 100% 0% 4% 4%
pidigits  #2 0.75  10,000 8,132 600 0.74 100% 0% 1% 1%
source secs N mem gz cpu cpu load
regex-redux  1.17  50,000 23,892 715 0.50 39% 12% 14% 39%
regex-redux  2.40  500,000 114,536 715 4.35 1% 98% 83% 0%
regex-redux  23.81  5,000,000 879,156 715 44.12 86% 0% 100% 0%
source secs N mem gz cpu cpu load
regex-redux  #2 1.28  50,000 22,664 671 0.50 94% 2% 5% 2%
regex-redux  #2 4.51  500,000 86,040 671 4.48 1% 1% 0% 99%
regex-redux  #2 43.47  5,000,000 682,836 671 43.47 0% 0% 0% 100%
source secs N mem gz cpu cpu load
regex-redux  #4 1.08  50,000 27,692 745 0.50 8% 16% 41% 18%
regex-redux  #4 2.23  500,000 135,708 745 4.51 35% 44% 35% 90%
regex-redux  #4 22.06  5,000,000 1,061,888 745 45.38 44% 35% 35% 92%
source secs N mem gz cpu cpu load
reverse-complement  0.79  250,000 12,788 1286 0.04 1% 15% 32% 3%
reverse-complement  1.80  100,000,000 794,484 1286 2.26 75% 4% 48% 1%
source secs N mem gz cpu cpu load
spectral-norm  #3 0.40  500 5,836 601 0.06 3% 17% 10% 45%
spectral-norm  #3 0.44  3,000 6,492 601 1.70 100% 98% 98% 98%
spectral-norm  #3 1.43  5,500 6,876 601 5.68 99% 100% 100% 100%
source secs N mem gz cpu cpu load
spectral-norm  0.89  500 12,212 438 0.11 0% 4% 9% 44%
spectral-norm  1.60  3,000 12,952 438 1.60 11% 4% 2% 100%
spectral-norm  5.32  5,500 12,872 438 5.32 1% 0% 0% 100%