Python Interpreters Benchmarks
x64 ArchLinux : Intel® i5-7200U®

vs

 1 : Are the MicroPython programs faster? At a glance.

Each chart bar shows, for one unidentified benchmark, how much the fastest MicroPython program used compared to the fastest Python 2 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 MicroPython programs faster? Approximately.

Each table row shows, for one named benchmark, how much the fastest MicroPython program used compared to the fastest Python 2 program.

(Memory use is only compared for tasks that require memory to be allocated.)

 MicroPython used what fraction? used how many times more? 
Benchmark Time Memory Code
 chameneos-redux1/2 ±
 pystone †± ±
 fannkuch-redux † 1/2
 n-body ±
 fib50 ±
 richards ±
 fasta ±
 pidigits ±
 thread-ring †40× ±
 spectral-norm68×?±
 fibonacci123× ±
 MicroPython used what fraction? used how many times more? 
Time-used  |-  |---  25% median  75%  ---|  -|
(Elapsed secs)1/21/222×53×123×

† possible mismatch - one-core program compared to multi-core program.

± read the measurements and then read the program source code.

 3 : Are the MicroPython 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 MicroPython program are shown for comparison against measurements of the fastest Python 2 program.

Program Source Code CPU secs Elapsed secs Memory KB Code B ≈ CPU Load
 chameneos-redux 
MicroPython130.4760.344,5761191  55% 48% 44% 51%
Python 2287.09114.886,9401192  62% 61% 61% 60%
 pystone 
MicroPython0.350.379882300  14% 100% 16% 14% †
Python 20.230.266042301  4% 4% 0% 96% †
 fannkuch-redux 
MicroPython8.598.604,096552  6% 2% 2% 100% †
Python 216.774.4411,6481009  99% 97% 94% 96% †
 n-body 
MicroPython106.50106.614,4081315  6% 2% 1% 100%
Python 247.5847.637,0081337  6% 1% 1% 100%
 fib50 
MicroPython6.966.974,148136  6% 100% 2% 2%
Python 22.792.7938,248130  6% 3% 100% 1%
 richards 
MicroPython2.922.924,1482434  6% 100% 2% 1%
Python 21.131.136,9322423  6% 100% 0% 1%
 fasta 
MicroPython22.3422.804,284904  47% 30% 1% 29%
Python 26.466.4713,176900  6% 2% 100% 2%
 pidigits 
MicroPython14.0614.084,172322  6% 1% 100% 1%
Python 23.043.187,368322  100% 2% 2% 1%
 thread-ring 
MicroPython31.9623.246,168448  25% 37% 24% 37% †
Python 20.550.586,964407  100% 3% 0% 0% †
 spectral-norm 
MicroPython6.836.844,288498  6% 1% 1% 100%
Python 20.090.10?394  0% 100% 0% 0%
 fibonacci 
MicroPython81.9682.033,004182  6% 100% 1% 1%
Python 20.670.677,268181  7% 100% 6% 2%
 reverse-complement 
No program
Python 20.01?431  
 regex-dna 
No program
Python 20.040.04?501  0% 0% 75% 0%
 k-nucleotide 
No program
Python 20.090.09?593  100% 11% 0% 0%
 jsonbench 
No program
Python 24.454.6016,312322  72% 30% 2% 2%
 iobench 
No program
Python 249.0549.096,652370  6% 1% 2% 100%
 meteor-contest 
No program
Python 22.672.677,0041485  6% 2% 100% 1%
 binary-trees 
No program
Python 23.751.0416,568743  91% 90% 90% 96%
 fasta-redux
   No programs
 mandelbrot
   No programs
 templates
   No programs
 binary-trees-redux
   No programs

† possible mismatch - one-core program compared to multi-core program.

 4 : Are there other MicroPython programs for these benchmarks?

Remember - those are just the fastest MicroPython and Python 2 programs measured on this OS/machine. Check if there are other implementations of these benchmark programs for MicroPython.

Maybe one of those other MicroPython programs is fastest on a different OS/machine.

 5 : Are there other faster programs for these benchmarks?

Remember - those are just the fastest MicroPython and Python 2 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.

 MicroPython : MicroPython 

 

Revised BSD license

  Home   Conclusions   License   Play