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×?±
 fibonacci113× ±
 pidigits †680×?±
 MicroPython used what fraction? used how many times more? 
Time-used  |-  |---  25% median  75%  ---|  -|
(Elapsed secs)±±±53×130×680×

† 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 
MicroPython140.2378.804,3001191  40% 42% 32% 40%
Python 2166.7992.188,4121192  35% 30% 48% 50%
 fib50 
MicroPython4.414.414,208136  1% 1% 1% 100%
Python 24.044.0537,928136  3% 4% 2% 100%
 thread-ring 
MicroPython0.890.892,356407  3% 2% 100% 0%
Python 20.770.776,432407  4% 0% 4% 100%
 pystone 
MicroPython0.460.464,3882303  2% 100% 0% 4%
Python 20.360.361,4562301  3% 6% 100% 10%
 fannkuch-redux 
MicroPython10.0810.094,224552  1% 100% 1% 1% †
Python 228.307.3544,4681009  98% 97% 97% 97% †
 n-body 
MicroPython129.28129.284,3761315  3% 99% 1% 3%
Python 272.6572.666,5921337  3% 3% 2% 100%
 richards 
MicroPython3.543.544,0002434  4% 100% 2% 3% †
Python 21.971.976,3242423  16% 43% 100% 34% †
 fasta 
MicroPython25.2225.224,396904  100% 2% 1% 2%
Python 210.1110.1112,696900  2% 100% 2% 4%
 spectral-norm 
MicroPython8.368.364,476498  2% 1% 1% 100%
Python 20.080.08?394  0% 0% 100% 0%
 fibonacci 
MicroPython88.6788.673,256182  2% 90% 1% 12%
Python 20.780.796,716181  9% 100% 3% 4%
 pidigits 
MicroPython15.6415.644,144322  2% 84% 2% 17% †
Python 20.020.02?378  0% 33% 100% 0% †
 binary-trees 
No program
Python 25.981.6557,668743  96% 92% 91% 92%
 meteor-contest 
No program
Python 23.793.806,6001485  6% 100% 1% 3%
 iobench 
No program
Python 244.5444.616,504370  65% 8% 46% 100%
 regex-dna 
No program
Python 20.090.14?612  29% 14% 27% 7%
 jsonbench 
No program
Python 26.876.8816,172322  4% 2% 98% 1%
 k-nucleotide 
No program
Python 20.100.11?593  0% 100% 0% 0%
 templates 
No program
Python 21.551.5616,564307  30% 5% 71% 3%
 mandelbrot 
No program
Python 2101.2628.56166,3123832  99% 96% 97% 99%
 fasta-redux
   No programs
 reverse-complement
   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