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± ±
 pystone † ±
 fannkuch-redux † 1/2
 n-body † ±
 richards ±
 fasta ±
 thread-ring †51× ±
 spectral-norm89×?±
 fibonacci124× ±
 pidigits †1,126×?±
 MicroPython used what fraction? used how many times more? 
Time-used  |-  |---  25% median  75%  ---|  -|
(Elapsed secs)±±89×221×1,126×

† 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 
MicroPython126.9158.804,5641191  54% 57% 43% 53%
Python 2152.7883.777,1001192  44% 45% 42% 39%
 pystone 
MicroPython0.380.381,3002303  5% 13% 100% 5% †
Python 20.230.248522301  0% 96% 4% 0% †
 fannkuch-redux 
MicroPython8.348.354,164552  1% 7% 100% 2% †
Python 217.084.6543,6201009  97% 96% 98% 97% †
 n-body 
MicroPython105.20109.114,4001315  7% 84% 14% 4% †
Python 253.1753.336,6921337  30% 28% 64% 20% †
 richards 
MicroPython3.033.044,1762434  10% 7% 92% 5%
Python 21.111.127,1002423  100% 0% 0% 3%
 fasta 
MicroPython22.5423.214,504904  6% 72% 6% 36%
Python 26.646.6513,444900  3% 100% 4% 4%
 thread-ring 
MicroPython32.2127.846,432448  63% 61% 65% 67% †
Python 20.550.557,060407  100% 4% 0% 0% †
 spectral-norm 
MicroPython7.237.254,472498  47% 8% 56% 6%
Python 20.080.08?394  0% 13% 0% 89%
 fibonacci 
MicroPython82.0582.603,128182  48% 13% 48% 2%
Python 20.670.677,240181  1% 100% 3% 0%
 pidigits 
MicroPython15.2615.764,260322  95% 82% 73% 77% †
Python 20.010.01?380  0% 0% 100% 0% †
 meteor-contest 
No program
Python 22.642.657,0921485  77% 2% 25% 1%
 fib50 
MicroPython6.997.004,156136  2% 7% 2% 100%
No program
 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