Python vs Swift
Swift est en tête avec un score de 14.4 contre 2.9 pour Python (11.5 points d’écart).
Sur 11 benchmarks communs, Python en remporte 2 et Swift en remporte 9.
Python mène dans la catégorie Efficacité mémoire. Python mène dans la catégorie Popularité.
Face-à-face
Benchmarks communs (11)
| Benchmark | Python | Swift |
|---|---|---|
fasta time (s) ↓ Programming Language Benchmarks | 3.347 | 0.138 |
binary-trees time (s) ↓ The Computer Language Benchmarks Game | 33.4 | 17.6 |
fannkuch-redux time (s) ↓ The Computer Language Benchmarks Game | 5 | 8.2 |
fasta time (s) ↓ The Computer Language Benchmarks Game | 27.9 | 2.2 |
k-nucleotide time (s) ↓ The Computer Language Benchmarks Game | 46.5 | 14.4 |
mandelbrot time (s) ↓ The Computer Language Benchmarks Game | 14.0 | 1.35 |
n-body time (s) ↓ The Computer Language Benchmarks Game | 6 | 5.45 |
pidigits time (s) ↓ The Computer Language Benchmarks Game | 1.35 | 0.76 |
regex-redux time (s) ↓ The Computer Language Benchmarks Game | 1.41 | 18.2 |
reverse-complement time (s) ↓ The Computer Language Benchmarks Game | 4.18 | 2.05 |
spectral-norm time (s) ↓ The Computer Language Benchmarks Game | 5 | 1.45 |