C# vs OCaml
C# 以 31.0 分领先于 OCaml 的 8.7 分(相差 22.3 分)。
在 17 项共同基准测试中,C# 胜出 16 项,OCaml 胜出 1 项。
OCaml 在内存效率方面领先。 C# 在流行度方面领先。
正面对比
共同基准测试(17)
| 基准测试 | C# | OCaml |
|---|---|---|
binarytrees time (s) ↓ Programming Language Benchmarks | 0.94 | 3.02 |
fasta time (s) ↓ Programming Language Benchmarks | 0.125 | 0.346 |
lru time (s) ↓ Programming Language Benchmarks | 0.096 | 0.187 |
merkletrees time (s) ↓ Programming Language Benchmarks | 0.517 | 1.113 |
nbody time (s) ↓ Programming Language Benchmarks | 0.36 | 0.373 |
nsieve time (s) ↓ Programming Language Benchmarks | 0.304 | 0.932 |
spectral-norm time (s) ↓ Programming Language Benchmarks | 1.885 | 4.574 |
binary-trees time (s) ↓ The Computer Language Benchmarks Game | 6.22 | 3.55 |
fannkuch-redux time (s) ↓ The Computer Language Benchmarks Game | 2.16 | 8.84 |
fasta time (s) ↓ The Computer Language Benchmarks Game | 1.14 | 3.37 |
k-nucleotide time (s) ↓ The Computer Language Benchmarks Game | 3.12 | 16.2 |
mandelbrot time (s) ↓ The Computer Language Benchmarks Game | 2.96 | 7.6 |
n-body time (s) ↓ The Computer Language Benchmarks Game | 3.13 | 6.95 |
pidigits time (s) ↓ The Computer Language Benchmarks Game | 0.75 | 2.77 |
regex-redux time (s) ↓ The Computer Language Benchmarks Game | 1.36 | 2.2 |
reverse-complement time (s) ↓ The Computer Language Benchmarks Game | 1.56 | 2.27 |
spectral-norm time (s) ↓ The Computer Language Benchmarks Game | 0.74 | 5.34 |