C vs OCaml
C 以 56.1 分领先于 OCaml 的 8.7 分(相差 47.4 分)。
在 13 项共同基准测试中,C 胜出 13 项,OCaml 胜出 0 项。
C 在内存效率方面领先。 C 在流行度方面领先。
正面对比
共同基准测试(13)
| 基准测试 | C | OCaml |
|---|---|---|
nbody time (s) ↓ Programming Language Benchmarks | 0.268 | 0.373 |
nsieve time (s) ↓ Programming Language Benchmarks | 0.266 | 0.932 |
spectral-norm time (s) ↓ Programming Language Benchmarks | 0.744 | 4.574 |
binary-trees time (s) ↓ The Computer Language Benchmarks Game | 1.56 | 3.55 |
fannkuch-redux time (s) ↓ The Computer Language Benchmarks Game | 2.14 | 8.84 |
fasta time (s) ↓ The Computer Language Benchmarks Game | 0.79 | 3.37 |
k-nucleotide time (s) ↓ The Computer Language Benchmarks Game | 3.58 | 16.2 |
mandelbrot time (s) ↓ The Computer Language Benchmarks Game | 1.29 | 7.6 |
n-body time (s) ↓ The Computer Language Benchmarks Game | 2.1 | 6.95 |
pidigits time (s) ↓ The Computer Language Benchmarks Game | 0.74 | 2.77 |
regex-redux time (s) ↓ The Computer Language Benchmarks Game | 0.81 | 2.2 |
reverse-complement time (s) ↓ The Computer Language Benchmarks Game | 0.44 | 2.27 |
spectral-norm time (s) ↓ The Computer Language Benchmarks Game | 0.4 | 5.34 |