8000 esp32: need help: custom build is slower than stock from website · Issue #8029 · micropython/micropython · GitHub
[go: up one dir, main page]

Skip to content

esp32: need help: custom build is slower than stock from website #8029

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

Open
petrkr opened this issue Nov 24, 2021 · 2 comments
Open

esp32: need help: custom build is slower than stock from website #8029

petrkr opened this issue Nov 24, 2021 · 2 comments

Comments

@petrkr
Copy link
Contributor
petrkr commented Nov 24, 2021

I trying speed up some TFT library and due LAN and ESPNow I still using own builds with SDK 3.3.2 (which is latest 1.14 upy). But I decided try first latest vanila uPy from website (night build) to compare if things speeds up meanwhile and yes they are.

But since I need do custom build due PSRAM and later with some pre-loaded libs etc I compile myself. But my custom build is in runtime slower than stock from night build.

I do not know why, so I want ask for help what can I have different in build environment. For now I use everything stock (git checkout, sdkcheckout, installed some binary toolchains by esp.idf 'install.sh' script)

Using SDK esp-idf tag 4.3 (not 4.3.1)
Using latest microypthon master (in time of writting it's 81f706a

benchmark of TFT draw some box:

Custom build 1.14 with 3.3.2 SDK with SPIRAM

  • 180ms (do not know what was freq now, but default)

official build 1.17 night 81f706a (https://micropython.org/download/esp32/)

  • 104ms @ 160MHz
  • 90m @ 240MHz

custom build 1.17 81f706a with 4.3 SDK

  • 140ms @ 160MHz
  • 110ms @ 240MHz

Would be nice to know to know used optimizations. For now I using board "GENERIC"

@petrkr
Copy link
Contributor Author
petrkr commented Nov 25, 2021

Another test

custom build 1.17 81f706a with 4.5-dev SDK w/o SPI RAM
90ms @ 160MHz
70ms @ 240MHz

custom build 1.17 81f706a with 4.5-dev SDK with SPI RAM
115ms @ 160MHz
95ms @ 240MHz

@petrkr
Copy link
Contributor Author
petrkr commented Nov 25, 2021

Another test:
seems official builds are from SDK 4.2.2 (or simillar 4.2.x)

custom build 1.17 81f706a with 4.2.2 SDK w/o SPI RAM
103ms @ 160MHz
85ms @ 240MHz

custom build 1.17 81f706a with 4.2.2 SDK with SPI RAM
150ms @ 160MHz
130ms @ 240MHz

Also free mem 109kB @ 4.2.2

others 4.3 and 4.5 only mem 62kB free, but I saw already issue about that #7962

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

No branches or pull requests

2 participants
0