The Computer Language
Benchmarks Game

all Swift programs & measurements

Swift version 4.1 (swift-4.1-RELEASE)
Target: x86_64-unknown-linux-gnu

source secs N mem gz cpu cpu load
binary-trees  0.02  7 ? 714 0.02 33% 67% 0% 0%
binary-trees  0.25  14 1,820 714 0.66 76% 96% 58% 48%
binary-trees  46.70  21 737,460 714 139.69 72% 63% 70% 95%
source secs N mem gz cpu cpu load
binary-trees  #9 0.08  7 ? 1001 ? 0% 0% 70% 0%
binary-trees  #9 0.05  14 ? 1001 0.11 40% 60% 100% 50%
binary-trees  #9 5.05  21 192,172 1001 14.17 60% 60% 63% 100%
source secs N mem gz cpu cpu load
fannkuch-redux  #3 0.07  10 ? 1102 0.25 86% 100% 83% 100%
fannkuch-redux  #3 0.76  11 7,792 1102 2.99 99% 100% 96% 99%
fannkuch-redux  #3 10.11  12 7,996 1102 40.21 99% 100% 100% 100%
source secs N mem gz cpu cpu load
fannkuch-redux  0.36  10 1,388 451 0.36 3% 5% 3% 100%
fannkuch-redux  4.38  11 4,424 451 4.38 1% 100% 1% 2%
fannkuch-redux  58.76  12 4,568 451 58.75 82% 19% 0% 0%
source secs N mem gz cpu cpu load
fasta  0.13  250,000 ? 1527 0.13 0% 0% 100% 7%
fasta  1.24  2,500,000 7,268 1527 1.24 2% 99% 0% 1%
fasta  11.98  25,000,000 7,592 1527 11.98 0% 1% 0% 100%
source secs N mem gz cpu cpu load
fasta  #2 0.05  250,000 ? 1953 0.05 75% 60% 0% 0%
fasta  #2 0.34  2,500,000 1,656 1953 0.50 30% 45% 39% 38%
fasta  #2 2.78  25,000,000 9,004 1953 4.36 71% 3% 82% 4%
source secs N mem gz cpu cpu load
fasta  #3 0.22  250,000 1,368 2096 0.13 23% 70% 18% 9%
fasta  #3 0.35  2,500,000 1,968 2096 0.87 76% 66% 74% 44%
fasta  #3 2.37  25,000,000 31,132 2096 7.85 83% 85% 71% 94%
source secs N mem gz cpu cpu load
k-nucleotide  #2 1.32  250,000 66,196 1366 2.14 25% 59% 23% 56%
k-nucleotide  #2 3.21  2,500,000 77,180 1366 9.31 82% 65% 80% 65%
k-nucleotide  #2 21.89  25,000,000 233,016 1366 81.36 96% 91% 95% 91%
source secs N mem gz cpu cpu load
k-nucleotide  1.42  250,000 51,080 1231 1.99 54% 49% 23% 18%
k-nucleotide  3.52  2,500,000 69,216 1231 9.42 57% 70% 85% 58%
k-nucleotide  24.92  25,000,000 181,548 1231 83.65 80% 83% 96% 79%
source secs N mem gz cpu cpu load
mandelbrot  #3 0.02  1,000 ? 1136 0.07 75% 50% 100% 100%
mandelbrot  #3 0.23  4,000 1,284 1136 0.85 95% 100% 95% 95%
mandelbrot  #3 3.29  16,000 39,664 1136 13.05 100% 99% 99% 99%
source secs N mem gz cpu cpu load
mandelbrot  0.20  1,000 ? 394 0.20 5% 0% 0% 95%
mandelbrot  3.09  4,000 7,440 394 3.09 100% 3% 0% 0%
mandelbrot  49.04  16,000 7,532 394 49.03 100% 1% 0% 0%
source secs N mem gz cpu cpu load
n-body  #5 0.23  500,000 1,596 1253 0.23 4% 100% 0% 0%
n-body  #5 2.23  5,000,000 7,404 1253 2.22 1% 100% 0% 0%
n-body  #5 22.18  50,000,000 7,632 1253 22.17 0% 1% 81% 19%
source secs N mem gz cpu cpu load
n-body  #6 0.25  500,000 1,012 1194 0.25 0% 0% 100% 8%
n-body  #6 2.43  5,000,000 7,516 1194 2.43 100% 2% 3% 0%
n-body  #6 24.24  50,000,000 7,592 1194 24.24 100% 1% 1% 0%
source secs N mem gz cpu cpu load
n-body  #7 0.26  500,000 1,804 1445 0.26 0% 4% 4% 100%
n-body  #7 2.42  5,000,000 15,296 1445 2.41 2% 1% 100% 0%
n-body  #7 23.98  50,000,000 15,680 1445 23.98 90% 9% 14% 26%
source secs N mem gz cpu cpu load
n-body  #8 0.26  500,000 1,148 1346 0.25 0% 0% 100% 4%
n-body  #8 2.39  5,000,000 15,348 1346 2.39 100% 1% 0% 0%
n-body  #8 23.77  50,000,000 15,632 1346 23.76 0% 1% 100% 0%
source secs N mem gz cpu cpu load
n-body  #3 2.05  500,000 7,172 1204 2.04 0% 1% 100% 0%
n-body  #3 20.82  5,000,000 7,552 1204 20.82 0% 1% 0% 100%
n-body  #3 203.61  50,000,000 7,488 1204 203.56 12% 88% 0% 0%
source secs N mem gz cpu cpu load
n-body  #4 0.24  500,000 1,776 1357 0.24 0% 0% 96% 8%
n-body  #4 2.20  5,000,000 15,360 1357 2.20 100% 1% 0% 0%
n-body  #4 21.93  50,000,000 15,648 1357 21.92 100% 1% 0% 0%
source secs N mem gz cpu cpu load
n-body  #2 0.34  500,000 1,004 1192 0.34 100% 9% 0% 0%
n-body  #2 3.26  5,000,000 7,504 1192 3.26 1% 1% 2% 100%
n-body  #2 32.54  50,000,000 7,612 1192 32.53 88% 13% 0% 0%
source secs N mem gz cpu cpu load
pidigits  #2 0.09  2,000 ? 601 0.07 0% 0% 0% 100%
pidigits  #2 0.60  6,000 8,228 601 0.60 0% 2% 5% 100%
pidigits  #2 1.75  10,000 8,948 601 1.75 1% 1% 1% 100%
pidigits  Make Error  2,000
regex-redux  #3 Bad Output  50,000
source secs N mem gz cpu cpu load
regex-redux  #2 0.95  50,000 22,540 671 0.95 0% 0% 100% 1%
regex-redux  #2 9.55  500,000 89,864 671 9.45 0% 1% 100% 0%
regex-redux  #2 94.96  5,000,000 691,900 671 94.91 69% 32% 0% 0%
source secs N mem gz cpu cpu load
regex-redux  0.77  50,000 24,784 715 1.41 1% 100% 84% 1%
regex-redux  7.59  500,000 109,564 715 14.03 100% 1% 5% 83%
regex-redux  75.54  5,000,000 897,668 715 141.08 74% 29% 67% 21%
source secs N mem gz cpu cpu load
reverse-complement  0.08  250,000 ? 1287 ? 75% 0% 13% 0%
reverse-complement  4.11  100,000,000 772,076 1287 4.80 10% 8% 19% 82%
source secs N mem gz cpu cpu load
spectral-norm  #3 0.06  500 ? 601 0.15 67% 67% 67% 83%
spectral-norm  #3 1.20  3,000 8,304 601 4.73 98% 100% 99% 99%
spectral-norm  #3 3.96  5,500 9,476 601 15.77 100% 100% 100% 100%
source secs N mem gz cpu cpu load
spectral-norm  0.29  500 1,280 438 0.16 0% 0% 70% 4%
spectral-norm  4.85  3,000 15,384 438 4.84 0% 100% 0% 0%
spectral-norm  16.18  5,500 16,636 438 16.18 100% 1% 0% 0%