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

† 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
 pidigits 
Python dev0.020.02?379  100% 0% 0% 0%
Python 30.030.03?379  0% 0% 100% 0%
 reverse-complement 
Python dev0.020.02?449  100% 0% 50% 0% †
Python 30.020.02?449  0% 0% 67% 0% †
 regex-dna 
Python dev0.050.05?524  0% 0% 0% 100%
Python 30.050.05?524  100% 0% 0% 0%
 fibonacci 
Python dev0.670.688,184182  100% 0% 0% 0%
Python 30.670.679,756182  100% 0% 0% 1%
 chameneos-redux 
Python dev122.9267.887,5761191  37% 33% 35% 34%
Python 3121.2567.529,0961191  35% 38% 36% 38%
 binary-trees 
Python dev3.831.0560,736741  95% 90% 90% 90%
Python 33.461.0460,120741  96% 83% 82% 80%
 templates 
Python dev1.181.1919,228322  0% 100% 1% 1%
Python 31.151.1520,920322  100% 0% 0% 0%
 fasta 
Python dev9.964.5189,8282016  61% 67% 75% 19%
Python 39.494.2993,1562016  78% 54% 46% 48%
 iobench 
Python dev3.803.807,224367  100% 0% 0% 0%
Python 33.603.618,808367  1% 0% 100% 0%
 thread-ring 
Python dev0.610.617,824407  100% 0% 2% 0%
Python 30.570.579,100407  0% 100% 0% 2%
 k-nucleotide 
Python dev0.120.12?594  8% 0% 100% 8%
Python 30.110.11?594  0% 100% 0% 0%
 fib50 
Python dev3.713.717,248136  100% 0% 0% 0%
Python 33.303.309,148136  0% 100% 0% 0%
 pystone 
Python dev0.330.331,8002303  0% 0% 100% 0%
Python 30.290.291,8642303  0% 0% 3% 100%
 fasta-redux 
Python dev0.320.321,8121115  3% 6% 0% 100%
Python 30.280.281,9521115  100% 0% 3% 0%
 meteor-contest 
Python dev3.923.928,2881443  0% 100% 0% 0%
Python 33.433.439,0521443  2% 100% 2% 1%
 fannkuch-redux 
Python dev14.293.7649,848894  96% 95% 96% 92%
Python 312.613.2955,084894  95% 96% 95% 98%
 richards 
Python dev1.471.478,0202434  1% 100% 0% 1%
Python 31.251.259,3722434  100% 0% 0% 0%
 n-body 
Python dev52.7152.717,7121315  0% 0% 100% 0%
Python 343.8943.898,7801315  11% 1% 89% 0%
 jsonbench 
Python dev4.324.3211,836322  0% 0% 0% 100%
Python 33.593.5912,456322  1% 100% 1% 0%
 spectral-norm 
Python dev9.492.5752,260575  94% 92% 94% 94% †
Python 30.120.12?394  8% 0% 100% 0% †
 mandelbrot 
No program
Python 372.4318.60187,5003832  97% 97% 98% 99%
 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