The Computer Language
Benchmarks Game

all Swift programs & measurements

Swift version 3.1-dev (LLVM 90ddc086b8, Clang 38e310f953, Swift 66d9533723)
Target: x86_64-unknown-linux-gnu

source secs N mem gz cpu cpu load
binary-trees  #9 0.06  7 ? 997 ? 0% 100% 17% 0%
binary-trees  #9 0.06  14 ? 997 0.10 83% 50% 43% 60%
binary-trees  #9 4.88  21 192,428 997 13.77 91% 61% 69% 63%
source secs N mem gz cpu cpu load
binary-trees  0.02  7 ? 714 0.02 33% 0% 0% 50%
binary-trees  0.25  14 1,760 714 0.66 88% 43% 88% 64%
binary-trees  45.55  21 739,152 714 135.25 90% 72% 69% 68%
source secs N mem gz cpu cpu load
fannkuch-redux  #3 0.11  10 ? 1102 0.25 55% 55% 91% 58%
fannkuch-redux  #3 0.77  11 9,680 1102 3.00 99% 97% 99% 100%
fannkuch-redux  #3 10.34  12 9,656 1102 40.92 100% 100% 98% 98%
source secs N mem gz cpu cpu load
fannkuch-redux  0.37  10 1,428 451 0.34 0% 100% 3% 5%
fannkuch-redux  4.15  11 4,280 451 4.15 2% 1% 100% 0%
fannkuch-redux  56.44  12 4,300 451 56.42 1% 0% 100% 1%
source secs N mem gz cpu cpu load
fasta  #2 0.04  250,000 ? 1953 0.06 67% 0% 20% 60%
fasta  #2 0.35  2,500,000 1,704 1953 0.50 11% 50% 32% 57%
fasta  #2 2.97  25,000,000 10,268 1953 4.54 35% 49% 39% 34%
source secs N mem gz cpu cpu load
fasta  0.12  250,000 ? 1527 0.12 0% 0% 0% 93%
fasta  1.13  2,500,000 6,740 1527 1.12 1% 100% 0% 3%
fasta  10.95  25,000,000 7,040 1527 10.94 100% 1% 1% 1%
source secs N mem gz cpu cpu load
fasta  #3 0.20  250,000 ? 2096 0.14 20% 76% 19% 14%
fasta  #3 0.38  2,500,000 1,708 2096 0.86 82% 53% 50% 51%
fasta  #3 2.36  25,000,000 37,188 2096 7.26 89% 82% 73% 66%
source secs N mem gz cpu cpu load
k-nucleotide  #2 1.39  250,000 61,560 1366 2.02 20% 30% 20% 86%
k-nucleotide  #2 3.06  2,500,000 82,636 1366 8.75 83% 65% 65% 78%
k-nucleotide  #2 20.64  25,000,000 264,112 1366 76.31 93% 90% 96% 92%
source secs N mem gz cpu cpu load
k-nucleotide  1.23  250,000 52,700 1231 1.88 58% 56% 22% 21%
k-nucleotide  3.27  2,500,000 75,080 1231 8.84 58% 70% 72% 72%
k-nucleotide  23.83  25,000,000 184,236 1231 79.39 79% 96% 79% 82%
source secs N mem gz cpu cpu load
mandelbrot  #3 0.03  1,000 ? 1136 0.07 100% 67% 67% 50%
mandelbrot  #3 0.23  4,000 1,336 1136 0.85 100% 100% 96% 95%
mandelbrot  #3 3.32  16,000 41,236 1136 13.17 99% 99% 99% 100%
source secs N mem gz cpu cpu load
mandelbrot  0.21  1,000 1,568 394 0.21 5% 100% 0% 0%
mandelbrot  3.26  4,000 7,220 394 3.25 1% 1% 100% 1%
mandelbrot  51.74  16,000 7,280 394 51.73 1% 1% 100% 0%
source secs N mem gz cpu cpu load
n-body  #6 0.26  500,000 1,212 1194 0.26 100% 0% 7% 0%
n-body  #6 2.55  5,000,000 7,068 1194 2.55 100% 0% 2% 1%
n-body  #6 25.47  50,000,000 7,156 1194 25.46 1% 100% 1% 1%
source secs N mem gz cpu cpu load
n-body  #2 0.37  500,000 1,572 1192 0.34 0% 0% 100% 3%
n-body  #2 3.42  5,000,000 7,140 1192 3.42 0% 1% 1% 100%
n-body  #2 34.19  50,000,000 7,280 1192 34.18 1% 1% 0% 100%
source secs N mem gz cpu cpu load
n-body  #3 0.31  500,000 1,528 1204 0.30 0% 0% 3% 100%
n-body  #3 3.01  5,000,000 7,272 1204 3.00 1% 0% 1% 100%
n-body  #3 30.00  50,000,000 7,280 1204 29.98 1% 100% 1% 0%
source secs N mem gz cpu cpu load
n-body  #5 0.25  500,000 1,560 1253 0.24 8% 100% 0% 0%
n-body  #5 2.36  5,000,000 7,152 1253 2.35 100% 1% 1% 0%
n-body  #5 23.62  50,000,000 7,256 1253 23.61 1% 1% 100% 0%
source secs N mem gz cpu cpu load
pidigits  #2 0.07  2,000 ? 601 0.06 0% 0% 88% 0%
pidigits  #2 0.60  6,000 7,168 601 0.60 0% 2% 100% 7%
pidigits  #2 1.75  10,000 8,128 601 1.74 1% 0% 100% 1%
pidigits  Make Error  2,000
source secs N mem gz cpu cpu load
regex-redux  #2 1.04  50,000 26,640 671 1.04 100% 3% 0% 1%
regex-redux  #2 10.10  500,000 90,768 671 10.09 1% 100% 0% 0%
regex-redux  #2 101.01  5,000,000 695,648 671 100.95 84% 17% 1% 0%
regex-redux  #3 Bad Output  50,000
source secs N mem gz cpu cpu load
reverse-complement  0.03  250,000 ? 1287 0.03 75% 0% 0% 0%
reverse-complement  0.13  2,500,000 ? 1287 0.16 33% 31% 67% 8%
reverse-complement  0.85  25,000,000 273,548 1287 1.03 10% 13% 80% 22%
source secs N mem gz cpu cpu load
spectral-norm  #3 0.05  500 ? 601 0.16 80% 71% 100% 50%
spectral-norm  #3 1.21  3,000 10,240 601 4.75 98% 100% 98% 98%
spectral-norm  #3 3.99  5,500 13,404 601 15.82 99% 100% 99% 99%
source secs N mem gz cpu cpu load
spectral-norm  0.16  500 ? 438 0.15 0% 0% 0% 100%
spectral-norm  4.85  3,000 15,528 438 4.84 1% 1% 1% 100%
spectral-norm  16.18  5,500 17,152 438 16.17 0% 1% 100% 0%