The Q6600
Benchmarks Game

Swift versus Go fastest programs

Always look at the source code.

These are only the fastest programs. Look at the other programs. They may seem more-like a fair comparison to you.

mandelbrot
source secs mem gz busy cpu load
Swift 3.20 39,320 1138 12.68 99% 100% 99% 99%
Go 5.55 30,300 894 22.11 99% 99% 99% 100%
fannkuch-redux
source secs mem gz busy cpu load
Swift 10.08 8,028 1097 39.99 98% 100% 99% 100%
Go 14.93 3,484 969 59.67 100% 100% 100% 100%
pidigits
source secs mem gz busy cpu load
Swift 1.75 8,716 600 2.05 5% 100% 12% 1%
Go 2.04 8,724 603 2.36 20% 32% 33% 31%
spectral-norm
source secs mem gz busy cpu load
Swift 3.99 7,836 601 15.93 100% 100% 100% 100%
Go 4.12 2,704 548 15.93 96% 98% 97% 96%
reverse-complement
source secs mem gz busy cpu load
Swift 3.79 753,924 1286 4.83 7% 70% 12% 39%
Go 3.73 826,488 611 4.10 88% 6% 2% 14%
n-body
source secs mem gz busy cpu load
Swift 21.74 12,092 1355 22.86 1% 2% 100% 2%
Go 21.26 1,888 1310 22.28 3% 0% 100% 2%
fasta
source secs mem gz busy cpu load
Swift 2.91 8,524 1945 4.59 18% 62% 63% 14%
Go 2.11 4,228 1358 5.66 69% 65% 64% 70%
binary-trees
source secs mem gz busy cpu load
Swift 38.21 702,592 816 122.34 76% 70% 79% 95%
Go 25.19 397,116 1007 86.01 88% 86% 84% 83%
k-nucleotide
source secs mem gz busy cpu load
Swift 22.39 257,104 1367 84.59 94% 96% 93% 95%
Go 12.67 150,584 1722 47.44 95% 90% 93% 96%
regex-redux
source secs mem gz busy cpu load
Swift 44.59 885,164 715 81.94 19% 60% 20% 85%
Go 7.21 326,552 810 10.19 22% 18% 87% 14%
Swift

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

Go

go version go1.14 linux/amd64