Fortran vs OCaml
Fortran is ahead with a score of 25.9 versus 8.7 for OCaml (17.2 points).
In 9 shared benchmarks, Fortran wins 7 and OCaml wins 2.
Fortran leads in Memory efficiency. Fortran leads in Popularity.
Head to head
Shared benchmarks (9)
| Benchmark | Fortran | OCaml |
|---|---|---|
binary-trees time (s) ↓ The Computer Language Benchmarks Game | 2.24 | 3.55 |
fannkuch-redux time (s) ↓ The Computer Language Benchmarks Game | 9.67 | 8.84 |
fasta time (s) ↓ The Computer Language Benchmarks Game | 1.36 | 3.37 |
mandelbrot time (s) ↓ The Computer Language Benchmarks Game | 2.72 | 7.6 |
n-body time (s) ↓ The Computer Language Benchmarks Game | 3.39 | 6.95 |
pidigits time (s) ↓ The Computer Language Benchmarks Game | 0.74 | 2.77 |
regex-redux time (s) ↓ The Computer Language Benchmarks Game | 0.98 | 2.2 |
reverse-complement time (s) ↓ The Computer Language Benchmarks Game | 3.35 | 2.27 |
spectral-norm time (s) ↓ The Computer Language Benchmarks Game | 0.72 | 5.34 |
Compare Fortran with
Compare OCaml with