The Computer Language
Benchmarks Game

all Swift programs & measurements

Swift version 5.5-dev (LLVM f9e846e117057c8, Swift a58e8c181f2e258)
Target: x86_64-unknown-linux-gnu

source secs N mem gz cpu cpu load
binary-trees  #2 0.73  7 11,264 816 0.03 7% 7% 39% 3%
binary-trees  #2 0.09  14 16,020 816 0.26 89% 91% 78% 67%
binary-trees  #2 16.26  21 699,876 816 51.42 100% 67% 78% 75%
source secs N mem gz cpu cpu load
binary-trees  #3 0.74  7 10,016 862 0.03 7% 0% 4% 91%
binary-trees  #3 0.10  14 15,168 862 0.26 100% 56% 56% 78%
binary-trees  #3 16.15  21 699,872 862 51.61 77% 66% 79% 100%
binary-trees  #9 Make Error  7
source secs N mem gz cpu cpu load
binary-trees  #5 0.85  7 11,320 806 0.03 51% 1% 0% 10%
binary-trees  #5 0.10  14 17,504 806 0.26 80% 73% 44% 100%
binary-trees  #5 16.72  21 732,888 806 49.74 67% 95% 65% 73%
source secs N mem gz cpu cpu load
binary-trees  0.77  7 11,596 714 0.03 8% 14% 1% 81%
binary-trees  0.11  14 17,136 714 0.29 50% 100% 82% 50%
binary-trees  19.39  21 733,308 714 57.67 72% 95% 64% 68%
source secs N mem gz cpu cpu load
binary-trees  #4 0.77  7 9,928 765 0.03 56% 8% 1% 3%
binary-trees  #4 0.10  14 14,872 765 0.30 73% 60% 91% 100%
binary-trees  #4 18.77  21 699,884 765 59.38 75% 66% 77% 100%
source secs N mem gz cpu cpu load
fannkuch-redux  #3 0.52  10 7,048 1097 0.22 17% 19% 55% 10%
fannkuch-redux  #3 0.62  11 7,600 1097 2.45 98% 97% 100% 98%
fannkuch-redux  #3 8.24  12 7,824 1097 32.67 98% 99% 100% 100%
source secs N mem gz cpu cpu load
fannkuch-redux  0.76  10 7,124 451 0.27 5% 7% 0% 92%
fannkuch-redux  2.76  11 7,492 451 2.76 0% 100% 0% 0%
fannkuch-redux  36.16  12 7,608 451 36.15 0% 100% 0% 0%
source secs N mem gz cpu cpu load
fasta  #2 0.51  250,000 8,124 1945 0.08 40% 6% 12% 8%
fasta  #2 0.24  2,500,000 8,596 1945 0.43 81% 76% 4% 16%
fasta  #2 2.18  25,000,000 8,796 1945 3.98 67% 89% 14% 17%
source secs N mem gz cpu cpu load
fasta  #3 0.75  250,000 19,476 2090 0.10 4% 8% 41% 8%
fasta  #3 0.20  2,500,000 26,536 2090 0.51 75% 61% 75% 55%
fasta  #3 1.41  25,000,000 26,396 2090 4.65 80% 80% 96% 79%
source secs N mem gz cpu cpu load
fasta  0.54  250,000 7,744 1526 0.10 55% 8% 4% 2%
fasta  0.50  2,500,000 7,748 1526 0.50 100% 2% 0% 0%
fasta  4.66  25,000,000 8,016 1526 4.66 100% 0% 1% 0%
source secs N mem gz cpu cpu load
k-nucleotide  #2 1.10  250,000 64,180 1367 0.80 20% 37% 21% 36%
k-nucleotide  #2 1.73  2,500,000 74,936 1367 5.55 80% 80% 86% 80%
k-nucleotide  #2 13.56  25,000,000 256,964 1367 52.20 96% 95% 96% 99%
k-nucleotide  Make Error  250,000
source secs N mem gz cpu cpu load
mandelbrot  0.62  1,000 6,960 394 0.16 70% 6% 2% 7%
mandelbrot  1.67  4,000 7,512 394 1.67 1% 99% 1% 1%
mandelbrot  26.29  16,000 7,552 394 26.28 1% 0% 0% 100%
source secs N mem gz cpu cpu load
mandelbrot  #5 0.54  1,000 8,628 659 0.13 6% 8% 24% 83%
mandelbrot  #5 0.48  4,000 11,240 659 1.70 96% 90% 90% 90%
mandelbrot  #5 7.33  16,000 42,920 659 26.98 90% 100% 90% 90%
mandelbrot  #3 Bad Output  1,000
source secs N mem gz cpu cpu load
mandelbrot  #7 1.81  1,000 11,680 1140 0.05 9% 21% 27% 84%
mandelbrot  #7 0.10  4,000 12,704 1140 0.35 100% 90% 90% 80%
mandelbrot  #7 1.34  16,000 41,120 1140 5.29 99% 99% 100% 100%
source secs N mem gz cpu cpu load
mandelbrot  #6 0.70  1,000 11,864 1141 0.05 10% 1% 6% 87%
mandelbrot  #6 0.11  4,000 13,336 1141 0.35 91% 90% 90% 91%
mandelbrot  #6 1.35  16,000 42,752 1141 5.32 99% 99% 99% 100%
source secs N mem gz cpu cpu load
n-body  #3 2.44  500,000 6,804 1204 1.96 88% 2% 0% 2%
n-body  #3 19.08  5,000,000 7,360 1204 19.08 0% 92% 0% 8%
n-body  #3 190.13  50,000,000 7,476 1204 190.12 100% 0% 0% 0%
source secs N mem gz cpu cpu load
n-body  #5 0.96  500,000 11,696 1365 0.11 2% 13% 0% 98%
n-body  #5 0.55  5,000,000 10,000 1365 0.55 98% 2% 2% 0%
n-body  #5 5.32  50,000,000 10,456 1365 5.32 100% 0% 0% 0%
source secs N mem gz cpu cpu load
n-body  #7 0.85  500,000 13,076 1326 0.11 49% 0% 7% 1%
n-body  #7 0.57  5,000,000 10,368 1326 0.57 100% 0% 0% 2%
n-body  #7 5.33  50,000,000 10,468 1326 5.33 100% 0% 0% 0%
source secs N mem gz cpu cpu load
n-body  #9 3.65  500,000 13,360 1526 2.98 89% 1% 3% 6%
n-body  #9 29.17  5,000,000 10,448 1526 29.17 0% 0% 0% 100%
n-body  #9 290.87  50,000,000 10,480 1526 290.86 0% 0% 0% 100%
source secs N mem gz cpu cpu load
n-body  #8 0.75  500,000 11,556 1681 0.12 3% 4% 11% 75%
n-body  #8 0.59  5,000,000 10,416 1681 0.59 0% 98% 2% 0%
n-body  #8 5.72  50,000,000 10,480 1681 5.72 0% 100% 0% 0%
source secs N mem gz cpu cpu load
n-body  #2 0.64  500,000 6,836 1192 0.15 8% 59% 2% 3%
n-body  #2 0.93  5,000,000 7,384 1192 0.93 29% 72% 4% 0%
n-body  #2 9.14  50,000,000 7,408 1192 9.14 0% 0% 0% 100%
source secs N mem gz cpu cpu load
n-body  #6 0.55  500,000 6,916 1194 0.11 56% 0% 2% 7%
n-body  #6 0.62  5,000,000 7,264 1194 0.61 0% 0% 0% 100%
n-body  #6 6.09  50,000,000 7,400 1194 6.09 0% 0% 0% 100%
source secs N mem gz cpu cpu load
n-body  #4 0.85  500,000 13,244 1355 0.12 8% 5% 39% 4%
n-body  #4 0.56  5,000,000 10,408 1355 0.55 4% 0% 100% 0%
n-body  #4 5.40  50,000,000 10,412 1355 5.40 0% 0% 100% 1%
source secs N mem gz cpu cpu load
pidigits  #2 0.52  2,000 8,516 600 0.08 6% 4% 51% 2%
pidigits  #2 0.32  6,000 8,892 600 0.31 100% 0% 6% 0%
pidigits  #2 0.89  10,000 9,256 600 0.89 3% 0% 0% 99%
source secs N mem gz cpu cpu load
regex-redux  #2 1.44  50,000 22,104 671 0.52 6% 1% 57% 2%
regex-redux  #2 4.62  500,000 85,312 671 4.48 1% 1% 0% 100%
regex-redux  #2 44.74  5,000,000 682,224 671 44.73 0% 0% 0% 100%
source secs N mem gz cpu cpu load
regex-redux  #4 1.10  50,000 26,688 745 0.54 39% 22% 10% 12%
regex-redux  #4 2.35  500,000 134,944 745 4.83 38% 45% 90% 36%
regex-redux  #4 23.14  5,000,000 1,059,096 745 48.53 92% 37% 46% 36%
source secs N mem gz cpu cpu load
regex-redux  1.08  50,000 23,268 715 0.54 24% 2% 4% 95%
regex-redux  2.65  500,000 114,516 715 4.67 1% 78% 0% 100%
regex-redux  25.98  5,000,000 881,852 715 46.63 100% 1% 80% 0%
source secs N mem gz cpu cpu load
reverse-complement  0.69  250,000 11,444 1286 0.04 0% 4% 7% 93%
reverse-complement  1.81  100,000,000 781,992 1286 2.27 3% 0% 48% 75%
source secs N mem gz cpu cpu load
spectral-norm  #3 0.53  500 7,052 601 0.07 8% 4% 40% 24%
spectral-norm  #3 0.43  3,000 7,612 601 1.70 98% 98% 98% 100%
spectral-norm  #3 1.43  5,500 8,144 601 5.68 100% 99% 99% 99%
source secs N mem gz cpu cpu load
spectral-norm  0.89  500 11,740 438 0.10 3% 1% 3% 94%
spectral-norm  1.60  3,000 12,220 438 1.60 1% 1% 2% 100%
spectral-norm  5.34  5,500 12,492 438 5.34 0% 0% 0% 100%