OCaml vs Python
OCaml est en tête avec un score de 8.7 contre 2.9 pour Python (5.8 points d’écart).
Sur 12 benchmarks communs, OCaml en remporte 7 et Python en remporte 5.
OCaml mène dans la catégorie Efficacité mémoire. Python mène dans la catégorie Popularité.
Face-à-face
Benchmarks communs (12)
| Benchmark | OCaml | Python |
|---|---|---|
fasta time (s) ↓ Programming Language Benchmarks | 0.346 | 3.347 |
lru time (s) ↓ Programming Language Benchmarks | 0.187 | 1.149 |
binary-trees time (s) ↓ The Computer Language Benchmarks Game | 3.55 | 33.4 |
fannkuch-redux time (s) ↓ The Computer Language Benchmarks Game | 8.84 | 5 |
fasta time (s) ↓ The Computer Language Benchmarks Game | 3.37 | 27.9 |
k-nucleotide time (s) ↓ The Computer Language Benchmarks Game | 16.2 | 46.5 |
mandelbrot time (s) ↓ The Computer Language Benchmarks Game | 7.6 | 14.0 |
n-body time (s) ↓ The Computer Language Benchmarks Game | 6.95 | 6 |
pidigits time (s) ↓ The Computer Language Benchmarks Game | 2.77 | 1.35 |
regex-redux time (s) ↓ The Computer Language Benchmarks Game | 2.2 | 1.41 |
reverse-complement time (s) ↓ The Computer Language Benchmarks Game | 2.27 | 4.18 |
spectral-norm time (s) ↓ The Computer Language Benchmarks Game | 5.34 | 5 |