C# vs Ruby
C# 以 31.0 分领先于 Ruby 的 1.4 分(相差 29.6 分)。
在 15 项共同基准测试中,C# 胜出 13 项,Ruby 胜出 2 项。
C# 在内存效率方面领先。 C# 在流行度方面领先。
正面对比
共同基准测试(15)
| 基准测试 | C# | Ruby |
|---|---|---|
binarytrees time (s) ↓ Programming Language Benchmarks | 0.94 | 4.961 |
coro-prime-sieve time (s) ↓ Programming Language Benchmarks | 2.078 | 1.412 |
fasta time (s) ↓ Programming Language Benchmarks | 0.125 | 2.039 |
json-serde time (s) ↓ Programming Language Benchmarks | 0.306 | 0.251 |
lru time (s) ↓ Programming Language Benchmarks | 0.096 | 0.34 |
binary-trees time (s) ↓ The Computer Language Benchmarks Game | 6.22 | 18.9 |
fannkuch-redux time (s) ↓ The Computer Language Benchmarks Game | 2.16 | 23.0 |
fasta time (s) ↓ The Computer Language Benchmarks Game | 1.14 | 34.2 |
k-nucleotide time (s) ↓ The Computer Language Benchmarks Game | 3.12 | 8 |
mandelbrot time (s) ↓ The Computer Language Benchmarks Game | 2.96 | 9 |
n-body time (s) ↓ The Computer Language Benchmarks Game | 3.13 | 5 |
pidigits time (s) ↓ The Computer Language Benchmarks Game | 0.75 | 17.9 |
regex-redux time (s) ↓ The Computer Language Benchmarks Game | 1.36 | 12.4 |
reverse-complement time (s) ↓ The Computer Language Benchmarks Game | 1.56 | 6.01 |
spectral-norm time (s) ↓ The Computer Language Benchmarks Game | 0.74 | 56.5 |