PHP vs Python
Python 以 2.9 分领先于 PHP 的 1.9 分(相差 1.0 分)。
在 10 项共同基准测试中,PHP 胜出 4 项,Python 胜出 6 项。
Python 在内存效率方面领先。 Python 在流行度方面领先。
正面对比
共同基准测试(10)
| 基准测试 | PHP | Python |
|---|---|---|
binary-trees time (s) ↓ The Computer Language Benchmarks Game | 22.2 | 33.4 |
fannkuch-redux time (s) ↓ The Computer Language Benchmarks Game | 7 | 5 |
fasta time (s) ↓ The Computer Language Benchmarks Game | 31.1 | 27.9 |
k-nucleotide time (s) ↓ The Computer Language Benchmarks Game | 25.8 | 46.5 |
mandelbrot time (s) ↓ The Computer Language Benchmarks Game | 7 | 14.0 |
n-body time (s) ↓ The Computer Language Benchmarks Game | 204 | 6 |
pidigits time (s) ↓ The Computer Language Benchmarks Game | 1.01 | 1.35 |
regex-redux time (s) ↓ The Computer Language Benchmarks Game | 1.88 | 1.41 |
reverse-complement time (s) ↓ The Computer Language Benchmarks Game | 8.29 | 4.18 |
spectral-norm time (s) ↓ The Computer Language Benchmarks Game | 18.3 | 5 |
将 PHP 与以下模型对比
将 Python 与以下模型对比