Lua vs Python
Python 以 2.9 分领先于 Lua 的 0.3 分(相差 2.6 分)。
在 10 项共同基准测试中,Lua 胜出 2 项,Python 胜出 8 项。
Lua 在内存效率方面领先。 Python 在流行度方面领先。
正面对比
共同基准测试(10)
| 基准测试 | Lua | Python |
|---|---|---|
binary-trees time (s) ↓ The Computer Language Benchmarks Game | 47.6 | 33.4 |
fannkuch-redux time (s) ↓ The Computer Language Benchmarks Game | 10.0 | 5 |
fasta time (s) ↓ The Computer Language Benchmarks Game | 24.1 | 27.9 |
k-nucleotide time (s) ↓ The Computer Language Benchmarks Game | 90.5 | 46.5 |
mandelbrot time (s) ↓ The Computer Language Benchmarks Game | 8 | 14.0 |
n-body time (s) ↓ The Computer Language Benchmarks Game | 216 | 6 |
pidigits time (s) ↓ The Computer Language Benchmarks Game | 2.99 | 1.35 |
regex-redux time (s) ↓ The Computer Language Benchmarks Game | 2.59 | 1.41 |
reverse-complement time (s) ↓ The Computer Language Benchmarks Game | 38.7 | 4.18 |
spectral-norm time (s) ↓ The Computer Language Benchmarks Game | 77.6 | 5 |
将 Lua 与以下模型对比
将 Python 与以下模型对比