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-redux± ±
 fib50± ±
 thread-ring± ±
 pystone ±
 fannkuch-redux † 1/2
 n-body ±
 richards ±
 fasta ±
 spectral-norm103×?±
 fibonacci123× ±
 pidigits1,030×?±
 MicroPython used what fraction? used how many times more? 
Time-used  |-  |---  25% median  75%  ---|  -|
(Elapsed secs)±±±53×130×1,030×

† 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 
MicroPython106.3457.564,5441191  42% 29% 36% 25%
Python 2113.1162.6911,0761192  34% 30% 32% 33%
 fib50 
MicroPython3.803.804,316136  1% 0% 100% 0%
Python 22.842.8438,432136  0% 0% 100% 0%
 thread-ring 
MicroPython0.730.732,500407  100% 0% 0% 0%
Python 20.550.557,072407  2% 100% 0% 2%
 pystone 
MicroPython0.390.391,3642303  3% 0% 100% 0%
Python 20.230.238442301  0% 100% 4% 4%
 fannkuch-redux 
MicroPython8.258.254,240552  0% 81% 0% 19% †
Python 215.914.1342,7081009  95% 97% 96% 98% †
 n-body 
MicroPython104.01104.014,3841315  60% 0% 41% 0%
Python 250.8250.826,7561337  100% 0% 0% 0%
 richards 
MicroPython3.033.034,1042434  0% 100% 0% 0%
Python 21.171.177,1322423  1% 1% 100% 0%
 fasta 
MicroPython20.8220.824,188904  0% 60% 0% 40%
Python 26.466.4613,432900  0% 75% 0% 25%
 spectral-norm 
MicroPython6.906.904,196498  0% 92% 0% 8%
Python 20.070.07?394  0% 0% 86% 0%
 fibonacci 
MicroPython81.8981.893,304182  0% 0% 100% 0%
Python 20.660.677,128181  0% 0% 0% 100%
 pidigits 
MicroPython12.3512.364,216322  0% 0% 100% 0%
Python 20.010.01?380  0% 0% 0% 100%
 meteor-contest 
No program
Python 22.652.656,9361485  100% 1% 1% 1%
 regex-dna 
No program
Python 20.040.04?501  80% 0% 20% 0%
 iobench 
No program
Python 224.8524.866,820370  0% 0% 100% 0%
 jsonbench 
No program
Python 24.334.3417,160322  0% 100% 0% 0%
 reverse-complement 
No program
Python 20.010.01?455  0% 0% 100% 0%
 k-nucleotide 
No program
Python 20.090.09?593  0% 10% 0% 89%
 binary-trees 
No program
Python 23.811.1660,644743  79% 87% 84% 82%
 templates 
No program
Python 21.051.0616,260307  0% 2% 0% 99%
 mandelbrot 
No program
Python 274.8719.17173,5243832  97% 98% 99% 97%
 fasta-redux
   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