/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 Pascal Free Pascal 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 Pascal Free Pascal program.

 Python 3 used what fraction? used how many times more? 
Benchmark Time Memory Code
 pidigits±1/3
 reverse-complement1/2
 k-nucleotide10×1/4
 binary-trees15×10×±
 mandelbrot25×844×±
 n-body32×588×±
 fasta33×584×±
 fannkuch-redux49×1/3
 spectral-norm65×651×±
 Python 3 used what fraction? used how many times more? 
Time-used  |-  |---  25% median  75%  ---|  -|
(Elapsed secs)±±10×25×33×65×65×

± 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 Pascal Free Pascal program.

Program Source Code CPU secs Elapsed secs Memory KB Code B ≈ CPU Load
 pidigits 
Python 33.063.065,408255  1% 0% 1% 100%
Pascal Free Pascal3.763.76856785  1% 2% 0% 100%
 reverse-complement 
Python 36.506.51616,588325  0% 0% 0% 100%
Pascal Free Pascal2.162.18128,584751  1% 1% 0% 100%
 k-nucleotide 
Python 3474.71474.95426,212647  1% 0% 0% 100%
Pascal Free Pascal48.6448.66128,3962383  0% 0% 0% 100%
 binary-trees 
Python 3504.56504.93685,724626  0% 0% 0% 100%
Pascal Free Pascal33.2533.2765,828769  0% 1% 1% 100%
 mandelbrot 
Python 31,845.311,968.406,748777  1% 0% 0% 100%
Pascal Free Pascal78.7478.768530  0% 0% 0% 100%
 n-body 
Python 31,098.651,098.894,7001181  0% 0% 0% 100%
Pascal Free Pascal34.7134.7381308  0% 0% 0% 100%
 fasta 
Python 3259.48262.344,672788  0% 1% 1% 100%
Pascal Free Pascal7.927.9381112  1% 1% 0% 100%
 fannkuch-redux 
Python 32,903.203,204.314,564385  0% 0% 0% 100%
Pascal Free Pascal65.3365.357441018  0% 0% 0% 100%
 spectral-norm 
Python 31,018.201,018.445,208328  0% 0% 0% 100%
Pascal Free Pascal15.7615.778423  0% 1% 0% 100%
 fasta-redux 
No program
Pascal Free Pascal0.050.06?1227  0% 14% 0% 100%
 regex-dna 
Python 30.240.25276424  0% 0% 4% 96%
No program

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

Remember - those are just the fastest Python 3 and Pascal Free Pascal 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 Pascal Free Pascal 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