Fortran vs Python
Fortran 以 25.9 分领先于 Python 的 2.9 分(相差 23.0 分)。
在 9 项共同基准测试中,Fortran 胜出 8 项,Python 胜出 1 项。
Fortran 在内存效率方面领先。 Python 在流行度方面领先。
正面对比
共同基准测试(9)
| 基准测试 | Fortran | Python |
|---|---|---|
binary-trees time (s) ↓ The Computer Language Benchmarks Game | 2.24 | 33.4 |
fannkuch-redux time (s) ↓ The Computer Language Benchmarks Game | 9.67 | 5 |
fasta time (s) ↓ The Computer Language Benchmarks Game | 1.36 | 27.9 |
mandelbrot time (s) ↓ The Computer Language Benchmarks Game | 2.72 | 14.0 |
n-body time (s) ↓ The Computer Language Benchmarks Game | 3.39 | 6 |
pidigits time (s) ↓ The Computer Language Benchmarks Game | 0.74 | 1.35 |
regex-redux time (s) ↓ The Computer Language Benchmarks Game | 0.98 | 1.41 |
reverse-complement time (s) ↓ The Computer Language Benchmarks Game | 3.35 | 4.18 |
spectral-norm time (s) ↓ The Computer Language Benchmarks Game | 0.72 | 5 |
将 Fortran 与以下模型对比
将 Python 与以下模型对比