Performance difference between 1.8.0.6 ESP32_REV3 and ESP32_PSRAM_REV3 firmware #1014
Replies: 4 comments 4 replies
-
Thanks for sharing @shodan8192. And question: any expectation or anything that you feel is broken here? |
Beta Was this translation helpful? Give feedback.
-
I'm just curious frome where this come from. It's more expected for me that the PSRAM build will be slightly slower. |
Beta Was this translation helpful? Give feedback.
-
Converting this to a Discussion as it's not really an issue. |
Beta Was this translation helpful? Give feedback.
-
As you probably know, C# code it's interpreted at the MCU, so nanoFramework will "loose" in any comparison for toggling a GPIO pin with a raw implementation using pure C or C++. For GPIO specifically, there is an extra wrapper to help manage the GPIO assignment that introduces some ceremony and, therefore, some delay when executing code that uses it. I personally am not very fond of it, but it was the way to handle the need to have reconfiguration of GPIOs from the code at boot time. I agre with your assessment that execution from PSRAM should be slightly slower then a device running it from internal RAM. As the code it's the same from nanoFramework end, it's most likely something with the Espressif IDF that manages the memory access. I have no better explanation to offer about this at this point. |
Beta Was this translation helpful? Give feedback.
-
Target name(s)
ESP32_PSRAM_REV3, ESP32_REV3
Firmware version
1.8.0.6
Was working before? On which version?
No response
Device capabilities
No response
Description
Output frequency on pin 25 :
Output frequency on pin 25 :
What's curious, that replacing led.Toggle() with led.Write(0) ; led.Write(1) gives :
Mandelbrot fractal calculations (https://gist.github.com/shodan8192/1248f49a1d752e34a7abc42a668b0b0d) shows little general performance difference
How to reproduce
No response
Expected behaviour
No response
Screenshots
No response
Aditional information
No response
Beta Was this translation helpful? Give feedback.
All reactions