Ubuntu : Intel® Q6600® quad-core |
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 |
| chameneos-redux | ||||
| reverse-complement | 1/5 | ± | ± | |
| spectral-norm | 1/5 | 7 | ± | |
| binary-trees | 1/5 | ± | ± | |
| mandelbrot | 1/2 | 1/16 | ± | |
| regex-dna | 1/2 | 1/3 | ± | |
| fasta | ± | ± | ± | |
| n-body | ± | ± | ± | |
| pidigits | ± | 2 | ± | |
| fannkuch | ± | 2 | ± | |
| k-nucleotide | 2 | 1/2 | ± | |
± look at the measurements
| Program & Logs | CPU secs | Memory KB | Size B | Elapsed secs | ~ CPU Load |
|---|---|---|---|---|---|
| reverse-complement | |||||
| Python CPython #3 | 7.64 | 538,340 | 288 | 7.64 | 100% 0% 0% 0% |
| Perl #2 | 38.22 | 422,912 | 298 | 38.22 | 0% 99% 0% 0% |
| spectral-norm | |||||
| Python CPython #5 | 1,150.52 | 20,744 | 428 | 296.88 | 95% 96% 97% 100% |
| Perl | 1,446.02 | 2,796 | 355 | 1,445.94 | 87% 0% 13% 0% |
| binary-trees | |||||
| Python CPython #6 | 1,045.71 | 674,488 | 626 | 296.77 | 85% 85% 86% 97% |
| Perl #2 | 1,343.31 | 643,504 | 541 | 1,343.26 | 100% 0% 0% 0% |
| mandelbrot | |||||
| Python CPython #5 | 3,115.98 | 18,824 | 425 | 779.18 | 100% 100% 100% 100% |
| Perl | 5,489.72 | 300,160 | 550 | 1,432.43 | 96% 95% 96% 95% |
| regex-dna | |||||
| Python CPython | 29.22 | 191,156 | 342 | 29.22 | 0% 100% 0% 0% |
| Perl #4 | 46.45 | 562,056 | 440 | 46.45 | 0% 100% 0% 0% |
| fasta | |||||
| Python CPython #2 | 234.29 | 2,852 | 779 | 234.32 | 4% 26% 37% 34% |
| Perl #4 | 347.13 | 2,128 | 934 | 347.13 | 0% 100% 0% 0% |
| n-body | |||||
| Python CPython #4 | 1,508.59 | 2,940 | 1105 | 1,508.52 | 100% 0% 0% 0% |
| Perl | 1,930.06 | 2,140 | 1140 | 1,929.94 | 0% 100% 0% 0% |
| pidigits | |||||
| Python CPython #3 | 7.40 | 5,528 | 476 | 7.40 | 0% 0% 100% 0% |
| Perl #2 | 8.08 | 3,304 | 385 | 8.08 | 100% 0% 0% 0% |
| fannkuch | |||||
| Python CPython #2 | 4,355.80 | 2,812 | 387 | 4,355.54 | 100% 0% 0% 0% |
| Perl | 4,358.00 | 1,668 | 348 | 4,357.75 | 0% 0% 100% 0% |
| k-nucleotide | |||||
| Python CPython | 559.17 | 439,248 | 475 | 561.06 | 0% 0% 99% 0% |
| Perl #2 | 246.72 | 709,252 | 359 | 249.79 | 1% 1% 98% 0% |
Python 2.6.3
Online book: Dive Into Python
Home Page: http://www.python.org/
Download: http://www.python.org/download/