Go vs OCaml
Go 以 20.8 分领先于 OCaml 的 8.7 分(相差 12.1 分)。
在 18 项共同基准测试中,Go 胜出 15 项,OCaml 胜出 3 项。
Go 在内存效率方面领先。 Go 在流行度方面领先。
正面对比
共同基准测试(18)
| 基准测试 | Go | OCaml |
|---|---|---|
binarytrees time (s) ↓ Programming Language Benchmarks | 2.343 | 3.02 |
fannkuch-redux time (s) ↓ Programming Language Benchmarks | 0.724 | 2.91 |
fasta time (s) ↓ Programming Language Benchmarks | 0.118 | 0.346 |
lru time (s) ↓ Programming Language Benchmarks | 0.119 | 0.187 |
merkletrees time (s) ↓ Programming Language Benchmarks | 1.436 | 1.113 |
nbody time (s) ↓ Programming Language Benchmarks | 0.35 | 0.373 |
nsieve time (s) ↓ Programming Language Benchmarks | 0.31 | 0.932 |
spectral-norm time (s) ↓ Programming Language Benchmarks | 1.906 | 4.574 |
binary-trees time (s) ↓ The Computer Language Benchmarks Game | 14.2 | 3.55 |
fannkuch-redux time (s) ↓ The Computer Language Benchmarks Game | 8.36 | 8.84 |
fasta time (s) ↓ The Computer Language Benchmarks Game | 1.27 | 3.37 |
k-nucleotide time (s) ↓ The Computer Language Benchmarks Game | 7.58 | 16.2 |
mandelbrot time (s) ↓ The Computer Language Benchmarks Game | 3.77 | 7.6 |
n-body time (s) ↓ The Computer Language Benchmarks Game | 6.39 | 6.95 |
pidigits time (s) ↓ The Computer Language Benchmarks Game | 0.82 | 2.77 |
regex-redux time (s) ↓ The Computer Language Benchmarks Game | 3.23 | 2.2 |
reverse-complement time (s) ↓ The Computer Language Benchmarks Game | 1.93 | 2.27 |
spectral-norm time (s) ↓ The Computer Language Benchmarks Game | 1.43 | 5.34 |