Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is It really so slow ? #37

Open
mtk11 opened this issue Oct 19, 2022 · 1 comment
Open

Is It really so slow ? #37

mtk11 opened this issue Oct 19, 2022 · 1 comment

Comments

@mtk11
Copy link

mtk11 commented Oct 19, 2022

I just tried micropython-raspberrypi on RP1 and it seems to work quite slow. The results from pystone_lowmem.py:

Pystone(1.2) time for 500 passes = 853ms
This machine benchmarks at 586 pystones/second

The result is compatible with a 64 MHz Cortex-M4 MCU, Has anyone performed similar testing ?

@boochow
Copy link
Owner

boochow commented Oct 23, 2022

@mtk11 Yes, it is very slow. When I ran micropython on Raspbian, it was 8-9 times faster than the bare metal version.
To speed it up, I probably need to enable instruction-cache / data-cache, branch predictor,etc. but I have not investigated yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants