Python Interpreters Benchmarks
x64 ArchLinux : AMD® Ryzen 7 4700U®

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 † ?±
 pidigits1/2?±
 k-nucleotide±?±
 regex-dna±?±
 binary-trees± ±
 fasta-redux±?±
 pystone †±?±
 fannkuch-redux± ±
 richards± ±
 spectral-norm±?±
 jsonbench± ±
 fib50± ±
 meteor-contest± ±
 n-body± ±
 chameneos-redux± ±
 templates± ±
 fasta± ±
 iobench± ±
 thread-ring †± ±
 mandelbrot± ±
 Python dev used what fraction? used how many times more? 
Time-used  |-  |---  25% median  75%  ---|  -|
(Elapsed secs) ±±±±±±

† 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.01?449   †
Python 30.020.02?458  33% 0% 100% 0% 0% 0% 0% 0% †
 pidigits 
Python dev0.010.02?379  33% 100% 0% 0% 0% 0% 0% 0%
Python 30.030.03?379  25% 0% 100% 0% 0% 0% 33% 25%
 k-nucleotide 
Python dev0.070.05?801  0% 0% 80% 0% 20% 20% 33% 0%
Python 30.080.06?801  57% 50% 14% 0% 25% 17% 29% 17%
 regex-dna 
Python dev0.030.03?524  0% 0% 100% 0% 25% 0% 0% 0%
Python 30.040.04?524  0% 100% 0% 0% 25% 0% 0% 20%
 binary-trees 
Python dev0.880.18?741  65% 61% 63% 53% 55% 85% 59% 63%
Python 31.030.223,584741  81% 62% 55% 57% 64% 57% 62% 57%
 fasta-redux 
Python dev0.150.15?1115  0% 7% 100% 0% 0% 0% 7% 6%
Python 30.170.17?1115  100% 6% 6% 0% 0% 0% 0% 6%
 pystone 
Python dev0.100.10?2300  0% 0% 0% 0% 17% 100% 0% 10% †
Python 30.110.12?2300  100% 8% 0% 0% 0% 0% 0% 0% †
 fannkuch-redux 
Python dev4.090.5797,032894  93% 84% 91% 92% 96% 91% 91% 91%
Python 34.720.6599,300894  91% 97% 91% 91% 85% 92% 91% 93%
 richards 
Python dev0.430.439,6202434  98% 0% 2% 0% 0% 0% 0% 0%
Python 30.490.4911,0922434  2% 4% 0% 2% 2% 100% 0% 0%
 spectral-norm 
Python dev0.100.10?394  0% 0% 100% 0% 0% 0% 10% 0%
Python 30.110.11?394  100% 0% 0% 0% 0% 0% 8% 0%
 jsonbench 
Python dev1.761.7612,888322  0% 0% 100% 1% 1% 0% 0% 1%
Python 32.002.0013,956322  2% 0% 1% 100% 0% 1% 1% 2%
 fib50 
Python dev1.461.468,540136  0% 100% 2% 0% 1% 1% 1% 1%
Python 31.631.6410,196136  100% 1% 2% 1% 1% 0% 0% 1%
 meteor-contest 
Python dev1.551.559,5121443  0% 0% 0% 100% 1% 1% 1% 0%
Python 31.701.7010,9641443  1% 1% 1% 0% 0% 0% 0% 99%
 n-body 
Python dev19.4219.428,9921315  70% 0% 0% 0% 30% 1% 0% 1%
Python 320.6920.7010,5841315  1% 0% 0% 0% 0% 100% 0% 1%
 chameneos-redux 
Python dev252.58184.2813,5041191  19% 19% 16% 18% 16% 16% 18% 10%
Python 3275.05194.3116,7481191  11% 14% 14% 14% 17% 21% 18% 22%
 templates 
Python dev0.560.5618,356322  2% 96% 2% 0% 2% 0% 2% 0%
Python 30.570.5820,176322  100% 0% 0% 2% 0% 3% 0% 2%
 fasta 
Python dev4.622.6165,9722016  28% 66% 2% 0% 37% 7% 3% 38%
Python 34.912.7165,7202016  44% 38% 4% 3% 60% 0% 26% 12%
 iobench 
Python dev2.993.008,828367  0% 0% 100% 0% 2% 0% 0% 1%
Python 32.993.0310,512367  1% 2% 0% 0% 100% 0% 0% 1%
 thread-ring 
Python dev0.240.28384406  10% 10% 7% 93% 4% 0% 0% 0% †
Python 30.280.281,920406  100% 7% 0% 0% 4% 0% 0% 3% †
 mandelbrot 
Python dev33.654.39307,6043852  97% 96% 97% 94% 97% 97% 96% 97%
Python 325.423.34317,3003852  95% 99% 94% 96% 95% 94% 96% 96%
 fibonacci 
Python dev0.490.509,384182  0% 0% 0% 100% 2% 0% 6% 0%
No program
 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