Python Interpreters Benchmarks
x64 ArchLinux : Intel® i5-7200U®

vs

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

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

(Memory use is only compared for tasks that require memory to be allocated.)


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 dev programs faster? Approximately.

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

(Memory use is only compared for tasks that require memory to be allocated.)

 Python dev used what fraction? used how many times more? 
Benchmark Time Memory Code
 reverse-complement †±?±
 fasta-redux± ±
 fannkuch-redux± ±
 iobench †± ±
 regex-dna±?±
 thread-ring± ±
 meteor-contest± ±
 fibonacci± ±
 binary-trees±±±
 richards± ±
 fib50± ±
 pystone± ±
 chameneos-redux± ±
 k-nucleotide±?±
 fasta± ±
 jsonbench± ±
 n-body± ±
 spectral-norm13×?±
 pidigits †111×?±
 Python dev used what fraction? used how many times more? 
Time-used  |-  |---  25% median  75%  ---|  -|
(Elapsed secs)±±±±±±111×

† possible mismatch - one-core program compared to multi-core program.

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

 3 : Are the Python dev 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 dev program are shown for comparison against measurements of the fastest Python 3 program.

Program Source Code CPU secs Elapsed secs Memory KB Code B ≈ CPU Load
 reverse-complement 
Python dev0.020.02?458  0% 0% 50% 0% †
Python 30.020.02?449  33% 0% 0% 100% †
 fasta-redux 
Python dev0.240.241,7081115  16% 0% 4% 100%
Python 30.280.281,6881115  7% 97% 7% 7%
 fannkuch-redux 
Python dev11.663.1112,624894  96% 98% 91% 98%
Python 311.993.1912,420894  98% 94% 96% 96%
 iobench 
Python dev5.285.298,308367  6% 100% 2% 2% †
Python 35.405.418,888367  71% 5% 32% 100% †
 regex-dna 
Python dev0.050.05?524  0% 0% 86% 0%
Python 30.050.05?524  0% 0% 100% 0%
 thread-ring 
Python dev33.4124.3412,340448  32% 35% 24% 34%
Python 333.8824.7313,388448  35% 31% 25% 33%
 meteor-contest 
Python dev2.993.008,8121443  10% 4% 100% 5%
Python 33.043.049,5081443  6% 1% 1% 100%
 fibonacci 
Python dev0.670.678,408182  6% 3% 99% 1%
Python 30.680.689,456182  8% 97% 4% 1%
 binary-trees 
Python dev2.960.8915,880741  85% 84% 80% 89%
Python 32.980.9015,752741  91% 83% 82% 82%
 richards 
Python dev0.880.888,4362434  6% 1% 99% 1%
Python 30.880.889,0682434  8% 100% 2% 1%
 fib50 
Python dev3.103.247,496136  100% 2% 2% 3%
Python 33.253.258,476136  6% 2% 100% 1%
 pystone 
Python dev0.270.281,7682300  15% 25% 7% 100%
Python 30.270.271,6642300  100% 17% 8% 8%
 chameneos-redux 
Python dev339.14172.837,9601191  48% 44% 45% 43%
Python 3340.10171.338,6801191  49% 44% 46% 43%
 k-nucleotide 
Python dev0.100.07?801  17% 29% 25% 83%
Python 30.100.07?801  43% 100% 29% 0%
 fasta 
Python dev7.124.2513,1562016  66% 36% 42% 34%
Python 37.304.0812,8322016  44% 58% 54% 34%
 jsonbench 
Python dev3.273.4311,308322  100% 1% 2% 2%
Python 33.183.1812,528322  7% 1% 2% 99%
 n-body 
Python dev41.6143.498,0521315  100% 1% 2% 1%
Python 340.0140.049,0601315  6% 100% 1% 1%
 spectral-norm 
Python dev7.152.0812,836575  88% 85% 87% 90%
Python 30.150.16?394  6% 56% 17% 69%
 pidigits 
Python dev3.073.218,700322  100% 2% 2% 2% †
Python 30.030.03?379  0% 25% 100% 0% †
 templates 
No program
Python 30.960.9716,192322  5% 2% 100% 5%
 mandelbrot
   No programs
 binary-trees-redux
   No programs

† possible mismatch - one-core program compared to multi-core program.

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

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

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

 5 : Are there other faster programs for these benchmarks?

Remember - those are just the fastest Python dev and Python 3 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 dev : the new Python 

 

Revised BSD license

  Home   Conclusions   License   Play