Skip to content

Exact same code runs twice as fast on the ESP32-C3 than on an ESP32-S2. Did I do something wrong or is this to be expected? #17161

Discussion options

You must be logged in to vote

Okay I got the same exact code running on an ESP32-S3 this time which has the same Tensilica Xtensa 32-bit LX7 core as the ESP32-S2 (but two of them on the S3, I'm not sure if/how micropython utilizes this second core) and also lot more RAM.

This time on the ESP32-S3 (no PSRAM) running at 160MHz I got 60.7ms per frame, which is still slower than the 47.5ms on the ESP32-C3 running also at 160MHz. But setting the ESP32-S3 frequency to 240MHz does speed it up to 36.2ms. (I ensured the code is 1:1 exactly the same as the one running on the ESP32-S2)

So I think in conclusion, at the same clock speed, Micropython is a bit slower on Xtensa compared to on RISC-V (Well for this one task at least).…

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
5 replies
@peterhinch
Comment options

@misaalanshori
Comment options

@misaalanshori
Comment options

@misaalanshori
Comment options

Answer selected by misaalanshori
@misaalanshori
Comment options

Comment options

You must be logged in to vote
1 reply
@misaalanshori
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
ESP32
Labels
None yet
2 participants