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
 fannkuch-redux1/2 ±
 pystone1/2 ±
 richards1/2 ±
 n-body1/2 ±
 reverse-complement1/2?
 templates1/2 ±
 thread-ring1/2 ±
 fasta± ±
 meteor-contest± ±
 binary-trees± ±
 fasta-redux± ±
 pidigits †±?±
 k-nucleotide±?±
 jsonbench± ±
 fib50± ±
 regex-dna±?±
 chameneos-redux †± ±
 fibonacci± ±
 iobench± ±
 spectral-norm?±
 Python dev used what fraction? used how many times more? 
Time-used  |-  |---  25% median  75%  ---|  -|
(Elapsed secs)1/21/21/2±±±

† 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
 fannkuch-redux 
Python dev6.760.9215,1481069  93% 92% 93% 95% 96% 95% 93% 98%
Python 314.552.2012,8121069  94% 95% 94% 90% 98% 90% 93% 90%
 pystone 
Python dev0.110.12?2300  36% 17% 9% 9% 8% 0% 18% 92%
Python 30.250.251,6162300  20% 12% 36% 12% 17% 17% 9% 100%
 richards 
Python dev0.530.5410,0802434  100% 25% 18% 8% 8% 6% 8% 8%
Python 30.900.908,7282434  19% 18% 18% 14% 100% 13% 12% 15%
 n-body 
Python dev23.1623.1810,0801315  79% 21% 15% 11% 36% 15% 15% 17%
Python 338.1938.198,0921315  19% 16% 100% 13% 14% 14% 12% 12%
 reverse-complement 
Python dev0.010.01?878  0% 33% 0% 0% 0% 0% 100% 0%
Python 30.020.02?449  33% 100% 33% 50% 0% 0% 33% 100%
 templates 
Python dev0.600.6019,244322  11% 2% 5% 100% 10% 13% 5% 3%
Python 30.920.9216,376322  17% 14% 14% 13% 12% 99% 6% 13%
 thread-ring 
Python dev53.3637.3114,224448  25% 22% 19% 18% 21% 26% 23% 27%
Python 364.6956.0812,708448  22% 21% 22% 20% 17% 18% 17% 17%
 fasta 
Python dev5.692.9915,3402016  38% 64% 45% 26% 20% 71% 31% 18%
Python 37.494.4412,9362016  24% 55% 29% 21% 18% 71% 16% 18%
 meteor-contest 
Python dev1.831.8410,6321443  21% 15% 10% 10% 8% 100% 8% 10%
Python 32.602.629,2561443  60% 13% 10% 11% 54% 12% 11% 12%
 binary-trees 
Python dev1.020.20?741  68% 75% 62% 67% 65% 63% 67% 63%
Python 31.460.291,620741  69% 67% 79% 61% 68% 71% 64% 62%
 fasta-redux 
Python dev0.180.18?1115  16% 11% 11% 26% 6% 6% 5% 100%
Python 30.250.258161115  14% 96% 0% 4% 23% 19% 17% 9%
 pidigits 
Python dev0.010.02?379  0% 0% 0% 0% 0% 0% 0% 100% †
Python 30.020.02?379  67% 25% 33% 0% 0% 0% 33% 100% †
 k-nucleotide 
Python dev0.080.05?801  33% 33% 20% 20% 60% 60% 20% 17%
Python 30.100.07?801  17% 14% 38% 88% 25% 12% 83% 22%
 jsonbench 
Python dev1.941.9514,720322  18% 5% 4% 4% 100% 4% 6% 5%
Python 32.642.6412,316322  100% 4% 3% 2% 4% 4% 6% 1%
 fib50 
Python dev1.801.809,520136  23% 8% 5% 10% 100% 9% 8% 8%
Python 32.132.149,276136  5% 4% 4% 2% 5% 3% 100% 2%
 regex-dna 
Python dev0.040.04?524  100% 57% 33% 33% 20% 25% 40% 0%
Python 30.050.05?524  67% 20% 0% 40% 0% 0% 83% 20%
 chameneos-redux 
Python dev315.76188.689,6921191  25% 22% 22% 22% 24% 21% 22% 22% †
Python 3296.43215.338,7281191  19% 14% 14% 13% 14% 15% 14% 14% †
 fibonacci 
Python dev0.490.509,904182  13% 4% 8% 2% 98% 14% 10% 6%
Python 30.560.568,584182  12% 50% 17% 5% 54% 7% 11% 2%
 iobench 
Python dev3.113.119,992367  19% 7% 8% 100% 7% 9% 10% 9%
Python 33.383.398,140367  51% 26% 22% 19% 76% 17% 18% 16%
 spectral-norm 
Python dev2.600.6915,092575  56% 61% 49% 48% 57% 57% 46% 41%
Python 30.160.16?394  6% 73% 17% 0% 94% 0% 7% 0%
 mandelbrot 
No program
Python 392.9312.6961,7403852  96% 99% 98% 99% 99% 96% 98% 98%
 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