Benchmarks
Posted: Wed Aug 13, 2014 8:31 pm
Ok, here is the function I used to test:
And these are the results:
pyboard:
Code: Select all
def test():
l = 10000000
s = 0
for i in range(l):
s = s + 1
return s
pyboard:
- standard: 33.061 s
- native 15. 962 s
- viper 1.906 s
- micropython standard: 0.48 s |1088 Kbytes
- micropython viper: fails
- pypy2: 0.06 s | 18391 Kbytes
- cpython3: 0.88s | 5764 Kbytes
- on the pyboard, viper is 17 times faster than standard
- viper on the pyboard is only 4 times slower than standard micropython on an x86 (from 2009 - 2x2.5GHz)
- standard micropython on x86 is already faster than cpython3
- pypy is incredible fast, and the difference becomes bigger the longer the function runs. but it's also uses a lot more memory than the others
- micropython is tiny. it needs 17 times less memory than pypy and 5 times less than cpython