Python Interpreters Benchmarks
x64 ArchLinux : AMD® Ryzen 7 4700U®

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
 pystone±?±
 richards ±
 fib50 † ±
 fannkuch-redux † 1/2
 n-body ±
 spectral-norm † ±
 pidigits ±
 fibonacci82× ±
 thread-ring115× ±
 MicroPython used what fraction? used how many times more? 
Time-used  |-  |---  25% median  75%  ---|  -|
(Elapsed secs)±±11×115×

† 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
 pystone 
MicroPython0.260.261,2682300  0% 0% 0% 4% 0% 100% 4% 0%
Python 20.200.20?2301  0% 0% 0% 0% 0% 100% 0% 0%
 richards 
MicroPython1.401.414,3002434  100% 1% 1% 0% 0% 0% 0% 0%
Python 20.870.876,3482423  1% 0% 100% 0% 1% 0% 0% 0%
 fib50 
MicroPython4.634.634,248136  4% 100% 4% 1% 3% 5% 3% 3% †
Python 22.402.4037,872130  0% 0% 100% 0% 0% 0% 0% 0% †
 fannkuch-redux 
MicroPython6.216.224,348552  0% 0% 0% 100% 0% 0% 0% 0% †
Python 211.022.8511,4601009  6% 4% 97% 95% 94% 0% 1% 96% †
 n-body 
MicroPython89.1589.174,5201315  0% 0% 0% 100% 0% 1% 0% 0%
Python 238.7838.786,6841337  0% 0% 0% 0% 0% 1% 0% 100%
 spectral-norm 
MicroPython5.775.784,524498  1% 0% 0% 1% 0% 1% 0% 100% †
Python 24.231.1311,728595  78% 71% 51% 30% 25% 35% 40% 59% †
 pidigits 
MicroPython11.4511.504,296322  0% 1% 100% 1% 1% 0% 0% 0%
Python 22.132.137,128322  0% 0% 0% 0% 1% 0% 100% 0%
 fibonacci 
MicroPython40.3040.313,296182  0% 0% 0% 0% 100% 0% 0% 0%
Python 20.490.496,772181  0% 100% 2% 0% 0% 0% 0% 0%
 thread-ring 
MicroPython49.2144.256,440448  5% 8% 5% 9% 6% 6% 8% 9%
Python 20.380.392,800407  3% 3% 97% 0% 0% 0% 0% 0%
 reverse-complement 
No program
Python 20.01?432  
 regex-dna 
No program
Python 20.030.03?501  100% 0% 0% 0% 0% 0% 0% 33%
 chameneos-redux 
MicroPython245.28156.624,6161191  11% 6% 14% 8% 6% 5% 7% 7%
No program
 k-nucleotide 
No program
Python 20.070.07?593  100% 0% 0% 0% 0% 0% 0% 0%
 jsonbench 
No program
Python 24.254.2615,884322  0% 0% 100% 0% 0% 0% 0% 0%
 iobench 
No program
Python 224.8624.866,336370  0% 0% 100% 0% 0% 0% 0% 0%
 fasta 
No program
Python 25.875.9112,988900  0% 0% 1% 0% 0% 99% 0% 0%
 meteor-contest 
No program
Python 22.142.146,8281485  0% 0% 100% 0% 0% 0% 0% 1%
 binary-trees 
No program
Python 22.020.4716,340743  54% 57% 56% 54% 64% 57% 63% 54%
 fasta-redux
   No programs
 mandelbrot
   No programs
 templates
   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