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
 n-body † ±
 fasta ±
 richards † ±
 spectral-norm †90×?±
 fibonacci †125× ±
 pidigits †987×?±
 MicroPython used what fraction? used how many times more? 
Time-used  |-  |---  25% median  75%  ---|  -|
(Elapsed secs)±±47×114×987×

† 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 
MicroPython148.9682.694,4681191  40% 43% 41% 44%
Python 2152.7883.777,1001192  44% 45% 42% 39%
 thread-ring 
MicroPython0.780.792,200407  22% 100% 10% 18% †
Python 20.550.557,060407  100% 4% 0% 0% †
 fib50 
MicroPython4.514.524,220136  1% 2% 100% 2%
Python 22.822.8238,508136  1% 3% 100% 1%
 pystone 
MicroPython0.390.401,3762303  5% 3% 100% 5%
Python 20.230.248522301  0% 96% 4% 0%
 fannkuch-redux 
MicroPython8.438.464,188552  87% 15% 7% 6% †
Python 217.084.6543,6201009  97% 96% 98% 97% †
 n-body 
MicroPython123.17125.814,2841315  54% 55% 40% 39% †
Python 248.9348.956,7401337  1% 0% 0% 100% †
 fasta 
MicroPython21.3821.464,448904  27% 41% 7% 45%
Python 26.646.6513,444900  3% 100% 4% 4%
 richards 
MicroPython3.793.864,2562434  75% 62% 77% 58% †
Python 21.111.127,1002423  100% 0% 0% 3% †
 spectral-norm 
MicroPython7.267.294,156498  38% 100% 9% 7% †
Python 20.080.08?394  0% 13% 0% 89% †
 fibonacci 
MicroPython82.9083.482,868182  72% 21% 47% 21% †
Python 20.670.677,240181  1% 100% 3% 0% †
 pidigits 
MicroPython13.6713.824,180322  55% 45% 72% 36% †
Python 20.010.01?380  0% 0% 100% 0% †
 meteor-contest 
No program
Python 22.642.657,0921485  77% 2% 25% 1%
 regex-dna 
No program
Python 20.030.04?501  0% 0% 25% 100%
 iobench 
No program
Python 236.6736.696,844370  3% 100% 3% 2%
 jsonbench 
No program
Python 24.474.4816,652322  3% 2% 100% 3%
 reverse-complement 
No program
Python 20.01?431  
 k-nucleotide 
No program
Python 20.080.08?593  0% 0% 0% 100%
 binary-trees 
No program
Python 23.851.2060,452743  79% 87% 86% 80%
 templates 
No program
Python 21.071.0915,884307  1% 99% 1% 0%
 mandelbrot 
No program
Python 275.6320.23176,5243832  95% 100% 97% 96%
 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