Full disclosure about performance

master
Paul Sokolovsky 2015-05-15 15:02:12 +03:00
rodzic 9f00c7975a
commit 7f34d95b23
1 zmienionych plików z 8 dodań i 1 usunięć

9
FAQ.md

@ -10,7 +10,14 @@
**How fast is micropython?**
> Check out the **[[Performance]]** wiki page for some samples.
> We try to make MicroPython have about same, or better, average performance as CPython, while offering considerably smaller memory footprint (both code ("ROM") and heap ("RAM") sizes). Optimizing for size is known to be opposite of optimizing for speed, so in some cases MicroPython may be slower (an example is diversified access to large dictionaries). However, on some operations (like integer arithmetics), MicroPython can be around 10 times faster than CPython (note that CPython itself is being optimized, so newer versions may be faster than older).
> Additionally, on select architectures (which include the most popular ones like x86, x86_64, ARMv7), MicroPython offers an ahead-of-time compiler for large subset of Python language, which may increase performance 2 times on average. Beyond that, MicroPython offers "viper" native compiler for a smaller subset of Python language, which offers near-C speed for arithmetic/memory operations. As a final touch, MicroPython offers inline assembler support (currently only for ARMv7 (Thumb2)), for really performance-critical cod.
> Summing up, MicroPython offers wide selection of performance options and optimizations, allowing you to get the performance you need - all available even on a microcontroller!
> * Some informal performance samples: **[[Performance]]**
> * Continuous Integration performance testing: http://micropython.org/resources/code-dashboard/ (look for "pystones" curve).
**How many platforms are supported by micropython**