/mobile Handheld Friendly website

÷

 1 : Are the Python 3 programs faster? At a glance.

Each chart bar shows, for one unidentified benchmark, how much the fastest Python 3 program used compared to the fastest Haskell GHC program.


These are not the only compilers and interpreters. These are not the only programs that could be written. These are not the only tasks that could be solved. These are just 10 tiny examples.

 2 : Are the Python 3 programs faster? Approximately.

Each table row shows, for one named benchmark, how much the fastest Python 3 program used compared to the fastest Haskell GHC program.

 Python 3 used what fraction? used how many times more? 
Benchmark Time Memory Code
 regex-dna±±1/4
 pidigits±±±
 reverse-complement1/3
 k-nucleotide±1/4
 binary-trees31×±
 mandelbrot45×1/5±
 n-body46×1/2
 fannkuch-redux50×1/3
 spectral-norm65×1/3
 fasta78×±
 Python 3 used what fraction? used how many times more? 
Time-used  |-  |---  25% median  75%  ---|  -|
(Elapsed secs)±±38×50×78×78×

± read the measurements and then read the program source code.

 3 : Are the Python 3 programs faster? Measurements.

These are not the only tasks that could be solved. These are just 10 tiny examples. These are not the only compilers and interpreters. These are not the only programs that could be written.

For each named benchmark, measurements of the fastest Python 3 program are shown for comparison against measurements of the fastest Haskell GHC program.

Program Source Code CPU secs Elapsed secs Memory KB Code B ≈ CPU Load
 regex-dna 
Python 321.1321.14194,612424  0% 0% 0% 100%
Haskell GHC28.4628.48266,4841518  0% 0% 0% 100%
 pidigits 
Python 33.063.065,408255  1% 0% 1% 100%
Haskell GHC3.063.075,284341  0% 1% 1% 100%
 reverse-complement 
Python 36.506.51616,588325  0% 0% 0% 100%
Haskell GHC1.541.55125,748999  0% 1% 0% 100%
 k-nucleotide 
Python 3474.71474.95426,212647  1% 0% 0% 100%
Haskell GHC71.5571.61308,8602749  0% 0% 0% 100%
 binary-trees 
Python 3504.56504.93685,724626  0% 0% 0% 100%
Haskell GHC16.4916.51183,532612  0% 0% 1% 100%
 mandelbrot 
Python 31,845.311,968.406,748777  1% 0% 0% 100%
Haskell GHC43.9643.9835,364782  0% 0% 0% 100%
 n-body 
Python 31,098.651,098.894,7001181  0% 0% 0% 100%
Haskell GHC23.6823.691,8401874  0% 0% 0% 100%
 fannkuch-redux 
Python 32,903.203,204.314,564385  0% 0% 0% 100%
Haskell GHC63.9263.941,5881153  0% 0% 0% 100%
 spectral-norm 
Python 31,018.201,018.445,208328  0% 0% 0% 100%
Haskell GHC15.7215.721,056984  0% 0% 0% 100%
 fasta 
Python 3259.48262.344,672788  0% 1% 1% 100%
Haskell GHC3.363.362,364979  0% 0% 0% 100%
 fasta-redux
   No programs

 4 : Are there other Python 3 programs for these benchmarks?

Remember - those are just the fastest Python 3 and Haskell GHC programs measured on this OS/machine. Check if there are other implementations of these benchmark programs for Python 3.

Maybe one of those other Python 3 programs is fastest on a different OS/machine.

 5 : Are there other faster programs for these benchmarks?

Remember - those are just the fastest Python 3 and Haskell GHC programs measured on this OS/machine. Check if there are faster implementations of these benchmark programs for other programming languages.

Maybe one of those other programs is fastest on a different OS/machine.

 Python 3 : the new Python 

Python 3.3.1 (default, Apr 11 2013, 12:56:47)
[GCC 4.7.2] on linux

"3.x is the newest branch of Python and the intended future of the language."

Home Page: Python 3.3.1 was released on April 7th, 2013.

Revised BSD license

  Home   Conclusions   License   Play