Go vs Swift
Go 以 20.8 分领先于 Swift 的 14.4 分(相差 6.4 分)。
在 15 项共同基准测试中,Go 胜出 10 项,Swift 胜出 5 项。
Go 在内存效率方面领先。 Go 在流行度方面领先。
正面对比
共同基准测试(15)
| 基准测试 | Go | Swift |
|---|---|---|
binarytrees time (s) ↓ Programming Language Benchmarks | 2.343 | 2.661 |
fannkuch-redux time (s) ↓ Programming Language Benchmarks | 0.724 | 2.469 |
fasta time (s) ↓ Programming Language Benchmarks | 0.118 | 0.138 |
knucleotide time (s) ↓ Programming Language Benchmarks | 0.676 | 1.313 |
nbody time (s) ↓ Programming Language Benchmarks | 0.35 | 0.343 |
binary-trees time (s) ↓ The Computer Language Benchmarks Game | 14.2 | 17.6 |
fannkuch-redux time (s) ↓ The Computer Language Benchmarks Game | 8.36 | 8.2 |
fasta time (s) ↓ The Computer Language Benchmarks Game | 1.27 | 2.2 |
k-nucleotide time (s) ↓ The Computer Language Benchmarks Game | 7.58 | 14.4 |
mandelbrot time (s) ↓ The Computer Language Benchmarks Game | 3.77 | 1.35 |
n-body time (s) ↓ The Computer Language Benchmarks Game | 6.39 | 5.45 |
pidigits time (s) ↓ The Computer Language Benchmarks Game | 0.82 | 0.76 |
regex-redux time (s) ↓ The Computer Language Benchmarks Game | 3.23 | 18.2 |
reverse-complement time (s) ↓ The Computer Language Benchmarks Game | 1.93 | 2.05 |
spectral-norm time (s) ↓ The Computer Language Benchmarks Game | 1.43 | 1.45 |