Python vs Swift
Swift 14.4 स्कोर के साथ Python (2.9) से आगे है (11.5 पॉइंट)।
11 साझा बेंचमार्क में से Python ने 2 और Swift ने 9 जीते।
मेमोरी दक्षता में Python आगे है। लोकप्रियता में Python आगे है।
आमने-सामने
साझा बेंचमार्क (11)
| बेंचमार्क | 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 |