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

† 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.010.02?458  0% 50% 100% 0% †
Python 30.020.03?449  0% 0% 0% 100% †
 regex-dna 
Python dev0.050.05?524  20% 100% 0% 0%
Python 30.060.06?524  100% 0% 0% 0%
 binary-trees 
Python dev3.170.9357,616741  89% 87% 88% 88%
Python 33.341.1156,280741  84% 93% 91% 89%
 k-nucleotide 
Python dev0.090.07?801  17% 17% 71% 17%
Python 30.110.08?801  22% 38% 22% 88%
 chameneos-redux 
Python dev305.55153.767,8401191  49% 45% 46% 46%
Python 3345.87171.998,7881191  48% 41% 46% 46%
 thread-ring 
Python dev30.0522.6012,216448  32% 32% 26% 33%
Python 334.0024.8313,240448  33% 35% 23% 39%
 iobench 
Python dev5.265.267,948367  5% 1% 100% 1%
Python 35.405.648,808367  98% 0% 2% 0%
 richards 
Python dev1.021.038,2042434  15% 33% 11% 72%
Python 31.101.109,0002434  12% 4% 5% 100%
 n-body 
Python dev45.7345.768,1161315  7% 8% 2% 94%
Python 346.5648.708,8721315  100% 1% 0% 1%
 fasta 
Python dev7.574.00103,4122016  23% 57% 75% 44%
Python 37.814.20104,0802016  67% 78% 28% 18%
 fasta-redux 
Python dev0.250.251,8201115  12% 100% 0% 0%
Python 30.260.261,9321115  4% 100% 0% 0%
 fib50 
Python dev3.253.257,852136  5% 45% 1% 56%
Python 33.353.368,392136  5% 0% 0% 100%
 fibonacci 
Python dev0.660.678,256182  14% 8% 11% 100% †
Python 30.680.689,376182  4% 0% 100% 0% †
 meteor-contest 
Python dev3.233.257,9241443  15% 1% 90% 1%
Python 33.233.238,9041443  6% 100% 0% 0%
 fannkuch-redux 
Python dev13.363.5346,800894  98% 98% 93% 99%
Python 313.273.4847,728894  98% 95% 98% 96%
 jsonbench 
Python dev3.393.4011,968322  6% 1% 100% 1%
Python 33.313.3111,908322  5% 0% 1% 100%
 spectral-norm 
Python dev8.802.4848,304575  92% 92% 89% 92% †
Python 30.200.211,792394  100% 5% 5% 10% †
 pidigits 
Python dev2.942.968,676322  15% 2% 91% 1% †
Python 30.030.03?379  0% 25% 0% 100% †
 templates 
No program
Python 31.031.0419,920322  10% 100% 3% 4%
 mandelbrot
   No programs
 binary-trees-redux
   No programs
 pystone
   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