PLEASE CHOOSE THE UP-TO-DATE MEASUREMENTS INSTEAD OF THESE! (Read the FAQ!) |
Compare the performance of Python CPython programs against some other language implementation.
For more information about the Python implementation we measured see ↓ about Python CPython.
| 1/2 1/3 1/4 Python CPython is better | ||||
|---|---|---|---|---|
| Programs | Time | Memory Use | Source Size | Reduced N |
| spectral-norm | ||||
| chameneos-redux | ||||
| nsieve | 1/3 | 1/3 | ± | |
| binary-trees | 1/3 | 1/3 | ± | |
| regex-dna | 1/2 | ± | ± | |
| pidigits | 1/2 | ± | ± | |
| fasta | ± | ± | ± | |
| recursive | ± | ± | ± | |
| mandelbrot | ± | ± | ± | |
| fannkuch | ± | 2 | ± | |
| sum-file | ± | 2 | ± | |
| n-body | ± | ± | ± | |
| reverse-complement | ± | ± | ± | |
| nsieve-bits | ± | 3 | ± | |
| partial-sums | 2 | 2 | ± | |
| k-nucleotide | 2 | 1/2 | ± | |
± look at the measurements
| Program & Logs | CPU secs | Memory KB | Size B | Elapsed secs | ~ CPU Load |
|---|---|---|---|---|---|
| nsieve | |||||
| Python CPython #4 | 8.57 | 35,220 | 246 | ||
| Perl #2 | 25.45 | 121,904 | 290 | ||
| binary-trees | |||||
| Python CPython #3 | 93.41 | 16,116 | 418 | ||
| Perl #2 | 239.36 | 47,936 | 541 | ||
| regex-dna | |||||
| Python CPython | 6.04 | 20,516 | 342 | ||
| Perl #4 | 11.81 | 21,408 | 431 | ||
| pidigits | |||||
| Python CPython #3 | 2.06 | 2,928 | 476 | ||
| Perl #2 | 3.61 | 2,532 | 385 | ||
| fasta | |||||
| Python CPython #2 | 692.04 | 2,420 | 779 | ||
| Perl #4 | 950.04 | 1,872 | 934 | ||
| recursive | |||||
| Python CPython | 683.74 | 14,296 | 360 | ||
| Perl #2 | 898.78 | 10,836 | 380 | ||
| mandelbrot | |||||
| Python CPython #3 | 323.70 | 2,420 | 303 | ||
| Perl #2 | 403.20 | 1,724 | 311 | ||
| fannkuch | |||||
| Python CPython | 772.84 | 2,404 | 411 | ||
| Perl | 855.72 | 1,492 | 348 | ||
| sum-file | |||||
| Python CPython #3 | 20.75 | 2,444 | 77 | ||
| Perl | 18.17 | 1,468 | 84 | ||
| n-body | |||||
| Python CPython #2 | 2,015.78 | 2,440 | 1027 | ||
| Perl | 1,697.59 | 1,936 | 1140 | ||
| reverse-complement | |||||
| Python CPython #3 | 2.73 | 49,072 | 288 | ||
| Perl #2 | 1.99 | 38,360 | 298 | ||
| nsieve-bits | |||||
| Python CPython | 144.40 | 12,436 | 288 | ||
| Perl | 100.18 | 4,004 | 253 | ||
| partial-sums | |||||
| Python CPython | 27.41 | 2,476 | 395 | ||
| Perl #3 | 17.41 | 1,476 | 389 | ||
| k-nucleotide | |||||
| Python CPython | 58.45 | 25,208 | 475 | ||
| Perl #2 | 32.07 | 42,816 | 359 | ||
Python 2.5.1
Online book: Dive Into Python
Home Page: http://www.python.org/
Download: http://www.python.org/download/