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

† 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
 k-nucleotide 
Python dev0.090.07?801  17% 17% 71% 17% †
Python 30.130.13?594  0% 8% 0% 100% †
 reverse-complement 
Python dev0.010.02?458  0% 50% 100% 0%
Python 30.020.02?449  100% 0% 0% 33%
 fasta-redux 
Python dev0.250.251,8201115  12% 100% 0% 0%
Python 30.290.291,8881115  3% 4% 0% 97%
 iobench 
Python dev5.265.267,948367  5% 1% 100% 1%
Python 36.126.128,408367  1% 6% 1% 100%
 chameneos-redux 
Python dev305.55153.767,8401191  49% 45% 46% 46%
Python 3331.68177.208,8881191  49% 54% 48% 51%
 richards 
Python dev1.021.038,2042434  15% 33% 11% 72% †
Python 31.151.158,9322434  2% 10% 100% 3% †
 fasta 
Python dev7.574.00103,4122016  23% 57% 75% 44%
Python 38.994.4596,8682016  56% 55% 52% 47%
 fib50 
Python dev3.253.257,852136  5% 45% 1% 56%
Python 33.433.558,384136  1% 76% 2% 26%
 regex-dna 
Python dev0.050.05?524  20% 100% 0% 0%
Python 30.050.05?524  0% 17% 100% 0%
 thread-ring 
Python dev30.0522.6012,216448  32% 32% 26% 33%
Python 332.3823.8413,176448  33% 38% 32% 29%
 jsonbench 
Python dev3.393.4011,968322  6% 1% 100% 1%
Python 33.553.5612,296322  1% 7% 3% 100%
 binary-trees 
Python dev3.170.9357,616741  89% 87% 88% 88%
Python 33.220.9660,196741  85% 88% 91% 86%
 meteor-contest 
Python dev3.233.257,9241443  15% 1% 90% 1%
Python 33.353.358,8401443  81% 6% 20% 1%
 fibonacci 
Python dev0.660.678,256182  14% 8% 11% 100% †
Python 30.670.689,136182  100% 9% 3% 3% †
 fannkuch-redux 
Python dev13.363.5346,800894  98% 98% 93% 99%
Python 313.123.5053,336894  99% 97% 97% 91%
 n-body 
Python dev45.7345.768,1161315  7% 8% 2% 94% †
Python 344.7145.218,8281315  37% 30% 44% 11% †
 spectral-norm 
Python dev8.802.4848,304575  92% 92% 89% 92%
Python 30.180.18?394  95% 17% 21% 6%
 pidigits 
Python dev2.942.968,676322  15% 2% 91% 1% †
Python 30.040.05?379  60% 100% 80% 67% †
 pystone 
No program
Python 30.280.281,9882303  93% 18% 10% 10%
 templates 
No program
Python 31.141.1520,084322  2% 10% 100% 4%
 mandelbrot 
No program
Python 378.4320.47196,0883832  98% 99% 99% 97%
 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