C vs Fortran
C 以 56.1 分领先于 Fortran 的 25.9 分(相差 30.2 分)。
在 9 项共同基准测试中,C 胜出 8 项,Fortran 胜出 0 项。
C 在内存效率方面领先。 C 在流行度方面领先。
正面对比
共同基准测试(9)
| 基准测试 | C | Fortran |
|---|---|---|
binary-trees time (s) ↓ The Computer Language Benchmarks Game | 1.56 | 2.24 |
fannkuch-redux time (s) ↓ The Computer Language Benchmarks Game | 2.14 | 9.67 |
fasta time (s) ↓ The Computer Language Benchmarks Game | 0.79 | 1.36 |
mandelbrot time (s) ↓ The Computer Language Benchmarks Game | 1.29 | 2.72 |
n-body time (s) ↓ The Computer Language Benchmarks Game | 2.1 | 3.39 |
pidigits time (s) ↓ The Computer Language Benchmarks Game | 0.74 | 0.74 |
regex-redux time (s) ↓ The Computer Language Benchmarks Game | 0.81 | 0.98 |
reverse-complement time (s) ↓ The Computer Language Benchmarks Game | 0.44 | 3.35 |
spectral-norm time (s) ↓ The Computer Language Benchmarks Game | 0.4 | 0.72 |
将 C 与以下模型对比
将 Fortran 与以下模型对比