C++ vs Go
C++ 以 56.6 分领先于 Go 的 20.8 分(相差 35.8 分)。
在 14 项共同基准测试中,C++ 胜出 13 项,Go 胜出 1 项。
C++ 在内存效率方面领先。 C++ 在流行度方面领先。
正面对比
共同基准测试(14)
| 基准测试 | C++ | Go |
|---|---|---|
fannkuch-redux time (s) ↓ Programming Language Benchmarks | 0.401 | 0.724 |
nbody time (s) ↓ Programming Language Benchmarks | 0.167 | 0.35 |
nsieve time (s) ↓ Programming Language Benchmarks | 0.485 | 0.31 |
spectral-norm time (s) ↓ Programming Language Benchmarks | 0.469 | 1.906 |
binary-trees time (s) ↓ The Computer Language Benchmarks Game | 1.01 | 14.2 |
fannkuch-redux time (s) ↓ The Computer Language Benchmarks Game | 3.33 | 8.36 |
fasta time (s) ↓ The Computer Language Benchmarks Game | 0.78 | 1.27 |
k-nucleotide time (s) ↓ The Computer Language Benchmarks Game | 2.02 | 7.58 |
mandelbrot time (s) ↓ The Computer Language Benchmarks Game | 0.89 | 3.77 |
n-body time (s) ↓ The Computer Language Benchmarks Game | 2.15 | 6.39 |
pidigits time (s) ↓ The Computer Language Benchmarks Game | 0.72 | 0.82 |
regex-redux time (s) ↓ The Computer Language Benchmarks Game | 1.14 | 3.23 |
reverse-complement time (s) ↓ The Computer Language Benchmarks Game | 0.76 | 1.93 |
spectral-norm time (s) ↓ The Computer Language Benchmarks Game | 0.72 | 1.43 |