The Computer Language
Benchmarks Game

all Swift programs & measurements

Swift version 4.1-dev (LLVM 3fa7aed3df, Clang 529966cf07, Swift 607f23d66d)
Target: x86_64-unknown-linux-gnu

source secs N mem gz cpu cpu load
binary-trees  0.02  7 ? 714 0.02 0% 50% 0% 0%
binary-trees  0.25  14 1,132 714 0.67 52% 67% 96% 73%
binary-trees  46.48  21 737,616 714 138.23 95% 71% 72% 60%
source secs N mem gz cpu cpu load
binary-trees  #9 0.17  7 ? 1001 ? 94% 0% 0% 0%
binary-trees  #9 0.05  14 ? 1001 0.11 33% 50% 40% 100%
binary-trees  #9 4.98  21 190,896 1001 14.01 61% 100% 63% 60%
source secs N mem gz cpu cpu load
fannkuch-redux  #3 0.07  10 ? 1102 0.25 100% 86% 100% 86%
fannkuch-redux  #3 0.74  11 7,880 1102 2.92 100% 100% 97% 97%
fannkuch-redux  #3 10.08  12 7,920 1102 39.91 98% 100% 98% 100%
source secs N mem gz cpu cpu load
fannkuch-redux  0.37  10 1,460 451 0.36 0% 100% 0% 3%
fannkuch-redux  4.46  11 4,468 451 4.46 1% 100% 1% 1%
fannkuch-redux  58.60  12 7,140 451 58.59 0% 1% 100% 0%
source secs N mem gz cpu cpu load
fasta  0.13  250,000 ? 1527 0.13 0% 7% 100% 0%
fasta  1.23  2,500,000 7,392 1527 1.23 0% 0% 100% 2%
fasta  11.91  25,000,000 7,472 1527 11.91 46% 55% 0% 0%
source secs N mem gz cpu cpu load
fasta  #2 0.05  250,000 ? 1953 0.06 0% 40% 67% 50%
fasta  #2 0.37  2,500,000 1,620 1953 0.53 14% 43% 49% 43%
fasta  #2 2.69  25,000,000 9,160 1953 4.11 74% 7% 1% 72%
source secs N mem gz cpu cpu load
fasta  #3 0.13  250,000 ? 2096 0.13 14% 29% 54% 17%
fasta  #3 0.35  2,500,000 1,768 2096 0.90 63% 51% 79% 72%
fasta  #3 2.41  25,000,000 32,480 2096 8.07 78% 86% 90% 81%
source secs N mem gz cpu cpu load
k-nucleotide  #2 1.41  250,000 66,432 1366 2.02 24% 53% 54% 24%
k-nucleotide  #2 3.41  2,500,000 77,172 1366 8.84 64% 70% 58% 78%
k-nucleotide  #2 20.55  25,000,000 193,992 1366 76.16 91% 97% 92% 91%
source secs N mem gz cpu cpu load
k-nucleotide  1.27  250,000 51,992 1231 1.88 18% 94% 21% 17%
k-nucleotide  3.28  2,500,000 70,252 1231 8.74 58% 69% 84% 55%
k-nucleotide  23.49  25,000,000 182,152 1231 77.70 80% 93% 78% 81%
source secs N mem gz cpu cpu load
mandelbrot  #3 0.02  1,000 ? 1136 0.06 100% 100% 50% 67%
mandelbrot  #3 0.23  4,000 1,340 1136 0.85 96% 96% 96% 100%
mandelbrot  #3 3.31  16,000 39,544 1136 13.09 99% 99% 100% 99%
source secs N mem gz cpu cpu load
mandelbrot  0.20  1,000 ? 394 0.20 0% 100% 0% 0%
mandelbrot  3.09  4,000 7,456 394 3.09 0% 1% 1% 100%
mandelbrot  49.04  16,000 7,504 394 49.03 0% 1% 0% 100%
source secs N mem gz cpu cpu load
n-body  #5 0.24  500,000 1,480 1253 0.23 0% 4% 0% 100%
n-body  #5 2.20  5,000,000 7,376 1253 2.20 0% 1% 2% 100%
n-body  #5 21.96  50,000,000 7,452 1253 21.95 0% 1% 100% 0%
source secs N mem gz cpu cpu load
n-body  #6 0.25  500,000 1,196 1194 0.25 100% 8% 0% 4%
n-body  #6 2.40  5,000,000 7,312 1194 2.40 0% 0% 100% 3%
n-body  #6 23.90  50,000,000 7,456 1194 23.89 100% 1% 0% 0%
source secs N mem gz cpu cpu load
n-body  #7 0.26  500,000 1,172 1445 0.25 0% 0% 4% 100%
n-body  #7 2.39  5,000,000 15,432 1445 2.39 0% 1% 1% 100%
n-body  #7 23.77  50,000,000 15,696 1445 23.76 100% 1% 0% 0%
source secs N mem gz cpu cpu load
n-body  #8 0.26  500,000 1,300 1346 0.25 100% 4% 0% 0%
n-body  #8 2.39  5,000,000 15,596 1346 2.39 100% 3% 0% 0%
n-body  #8 23.70  50,000,000 15,608 1346 23.69 4% 7% 1% 100%
source secs N mem gz cpu cpu load
n-body  #3 2.04  500,000 7,244 1204 2.04 3% 100% 0% 0%
n-body  #3 20.31  5,000,000 7,480 1204 20.30 2% 6% 100% 1%
n-body  #3 207.82  50,000,000 7,388 1204 207.78 0% 1% 100% 0%
source secs N mem gz cpu cpu load
n-body  #4 0.25  500,000 1,296 1357 0.25 0% 0% 96% 4%
n-body  #4 2.36  5,000,000 15,368 1357 2.36 1% 100% 0% 0%
n-body  #4 23.47  50,000,000 15,520 1357 23.46 1% 100% 0% 0%
source secs N mem gz cpu cpu load
n-body  #2 0.33  500,000 988 1192 0.33 0% 100% 0% 0%
n-body  #2 3.26  5,000,000 7,452 1192 3.25 1% 100% 0% 1%
n-body  #2 32.39  50,000,000 7,476 1192 32.38 100% 1% 0% 1%
source secs N mem gz cpu cpu load
pidigits  #2 0.07  2,000 ? 601 0.07 0% 100% 0% 13%
pidigits  #2 0.61  6,000 8,356 601 0.61 100% 3% 0% 0%
pidigits  #2 1.76  10,000 8,932 601 1.75 100% 2% 1% 2%
pidigits  Make Error  2,000
regex-redux  #3 Bad Output  50,000
source secs N mem gz cpu cpu load
regex-redux  #2 0.94  50,000 23,104 671 0.94 4% 100% 0% 1%
regex-redux  #2 9.35  500,000 90,884 671 9.25 0% 1% 99% 0%
regex-redux  #2 93.00  5,000,000 692,504 671 92.96 100% 1% 0% 1%
source secs N mem gz cpu cpu load
regex-redux  0.77  50,000 24,668 715 1.40 100% 3% 0% 83%
regex-redux  7.53  500,000 109,940 715 14.05 2% 87% 100% 1%
regex-redux  74.22  5,000,000 898,456 715 137.84 2% 86% 100% 3%
source secs N mem gz cpu cpu load
reverse-complement  0.14  250,000 ? 1287 ? 8% 0% 7% 100%
reverse-complement  0.44  2,500,000 ? 1287 ? 45% 51% 0% 12%
reverse-complement  1.00  25,000,000 285,556 1287 1.18 80% 1% 36% 2%
source secs N mem gz cpu cpu load
spectral-norm  #3 0.05  500 ? 601 0.16 80% 80% 80% 75%
spectral-norm  #3 1.20  3,000 8,496 601 4.74 99% 99% 99% 99%
spectral-norm  #3 3.97  5,500 9,684 601 15.81 100% 100% 100% 100%
source secs N mem gz cpu cpu load
spectral-norm  0.16  500 ? 438 0.15 0% 100% 0% 0%
spectral-norm  4.85  3,000 15,440 438 4.84 42% 59% 0% 0%
spectral-norm  16.18  5,500 17,092 438 16.18 0% 1% 100% 0%