Ubuntu : Intel® Q6600® quad-core |
Do the Python CPython programs use optimized assembly code libraries? Are they small simple programs or very optimized programs? Do the Python CPython programs use a fraction of the time used by other programs or do they use several times more?
| Python CPython used what fraction? used how many times more? | ||||
|---|---|---|---|---|
| Programs | Time | Memory | Code | Reduced N |
| ↓ reverse-complement | ± | 3× | 1/3 | |
| ↓ k-nucleotide | ± | 2× | 1/4 | |
| ↓ binary-trees | 6× | 10× | ± | |
| ↓ mandelbrot | 14× | 1/2 | ± | |
| ↓ fasta | 23× | 7× | ± | |
| ↓ n-body | 63× | 7× | ± | |
| ↓ spectral-norm | 74× | 18× | ± | |
| ↓ fannkuch | 83× | 7× | ± | |
± look at the measurements and then look at the programs.
| Program & Logs | CPU secs | Elapsed secs | Memory KB | Code B | ~ CPU Load |
|---|---|---|---|---|---|
| reverse-complement | |||||
| Python CPython | 7.64 | 7.64 | 538,340 | 288 | 100% 0% 0% 0% |
| Fortran Intel | 11.26 | 11.26 | 166,568 | 772 | 0% 0% 0% 100% |
| k-nucleotide | |||||
| Python CPython | 476.18 | 157.21 | 439,968 | 557 | 77% 54% 93% 76% |
| Fortran Intel | 137.67 | 137.66 | 205,660 | 2238 | 0% 0% 0% 100% |
| binary-trees | |||||
| Python CPython | 1,045.71 | 296.77 | 674,488 | 626 | 85% 85% 86% 97% |
| Fortran Intel | 48.06 | 48.06 | 65,936 | 826 | 0% 0% 0% 100% |
| mandelbrot | |||||
| Python CPython | 3,115.98 | 779.18 | 18,824 | 425 | 100% 100% 100% 100% |
| Fortran Intel | 56.84 | 56.84 | 32,392 | 485 | 0% 0% 0% 100% |
| fasta | |||||
| Python CPython | 234.29 | 234.32 | 2,852 | 779 | 4% 26% 37% 34% |
| Fortran Intel | 9.98 | 9.98 | 396 | 1155 | 0% 0% 0% 100% |
| n-body | |||||
| Python CPython | 1,508.59 | 1,508.52 | 2,940 | 1105 | 100% 0% 0% 0% |
| Fortran Intel | 23.99 | 23.99 | 440 | 1389 | 0% 100% 0% 0% |
| spectral-norm | |||||
| Python CPython | 1,150.52 | 296.88 | 20,744 | 428 | 95% 96% 97% 100% |
| Fortran Intel | 15.82 | 4.00 | 1,140 | 568 | 99% 99% 99% 99% |
| fannkuch | |||||
| Python CPython | 4,355.80 | 4,355.54 | 2,812 | 387 | 100% 0% 0% 0% |
| Fortran Intel | 52.26 | 52.26 | 408 | 521 | 0% 100% 0% 0% |
| chameneos-redux | |||||
| Python CPython | 288.54 | 237.53 | 3,020 | 869 | 39% 33% 17% 27% |
| pidigits | |||||
| Python CPython | 61.44 | 61.44 | 3,600 | 407 | 0% 0% 0% 100% |
| regex-dna | |||||
| Python CPython | 29.22 | 29.22 | 191,156 | 342 | 0% 100% 0% 0% |
Python 2.6.3
Online book: Dive Into Python
Home Page: http://www.python.org/
Download: http://www.python.org/download/