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± ±
 thread-ring± ±
 fib50± ±
 pystone± ±
 fannkuch-redux †± 1/2
 richards † ±
 n-body ±
 fasta ±
 fibonacci77× ±
 spectral-norm104×?±
 pidigits †412×?±
 MicroPython used what fraction? used how many times more? 
Time-used  |-  |---  25% median  75%  ---|  -|
(Elapsed secs)±±±40×98×412×

† 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 
MicroPython151.5982.424,5721191  31% 26% 49% 50%
Python 2166.7992.188,4121192  35% 30% 48% 50%
 thread-ring 
MicroPython0.770.772,344407  1% 1% 0% 100%
Python 20.770.776,432407  4% 0% 4% 100%
 fib50 
MicroPython4.254.254,168136  0% 0% 100% 0%
Python 24.044.0537,928136  3% 4% 2% 100%
 pystone 
MicroPython0.380.391,1202303  3% 0% 0% 100%
Python 20.360.361,4562301  3% 6% 100% 10%
 fannkuch-redux 
MicroPython10.4710.474,020552  2% 3% 0% 100% †
Python 228.307.3544,4681009  98% 97% 97% 97% †
 richards 
MicroPython3.403.413,9642434  1% 100% 0% 5% †
Python 21.971.976,3242423  16% 43% 100% 34% †
 n-body 
MicroPython135.07135.074,2321315  7% 1% 95% 1%
Python 272.6572.666,5921337  3% 3% 2% 100%
 fasta 
MicroPython25.2325.244,264904  3% 97% 1% 6%
Python 210.1110.1112,696900  2% 100% 2% 4%
 fibonacci 
MicroPython60.3360.342,988182  1% 1% 100% 1%
Python 20.780.796,716181  9% 100% 3% 4%
 spectral-norm 
MicroPython8.428.424,244498  79% 0% 21% 1%
Python 20.080.08?394  0% 0% 100% 0%
 pidigits 
MicroPython9.479.484,208322  2% 1% 0% 100% †
Python 20.020.02?378  0% 33% 100% 0% †
 iobench 
No program
Python 244.5444.616,504370  65% 8% 46% 100%
 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%
 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