C++ vs Fortran
C++ 以 56.6 分领先于 Fortran 的 25.9 分(相差 30.7 分)。
在 9 项共同基准测试中,C++ 胜出 7 项,Fortran 胜出 1 项。
C++ 在内存效率方面领先。 C++ 在流行度方面领先。
正面对比
共同基准测试(9)
| 基准测试 | C++ | Fortran |
|---|---|---|
binary-trees time (s) ↓ The Computer Language Benchmarks Game | 1.01 | 2.24 |
fannkuch-redux time (s) ↓ The Computer Language Benchmarks Game | 3.33 | 9.67 |
fasta time (s) ↓ The Computer Language Benchmarks Game | 0.78 | 1.36 |
mandelbrot time (s) ↓ The Computer Language Benchmarks Game | 0.89 | 2.72 |
n-body time (s) ↓ The Computer Language Benchmarks Game | 2.15 | 3.39 |
pidigits time (s) ↓ The Computer Language Benchmarks Game | 0.72 | 0.74 |
regex-redux time (s) ↓ The Computer Language Benchmarks Game | 1.14 | 0.98 |
reverse-complement time (s) ↓ The Computer Language Benchmarks Game | 0.76 | 3.35 |
spectral-norm time (s) ↓ The Computer Language Benchmarks Game | 0.72 | 0.72 |
将 C++ 与以下模型对比
将 Fortran 与以下模型对比