Page 1 of 1

499 VS 1661? Why performance reduced a lot when use the newest source build for esp32 port?

Posted: Thu Feb 20, 2020 6:21 am
by cccc
Please help! :D
On the same hardware board and same cpu freq setting, also use upip.install("micropython-pystone_lowmem") to get the same test code, got results below:

Code: Select all

I (20) pm_esp32: Frequency switching config: CPU_MAX: 240, APB_MAX: 240, APB_MIN: 240, Light sleep: DISABLED
MicroPython cddb90e-dirty on 2020-02-18; ESP32 module with ESP32
Type "help()" for more information.
>>>[reboot detected 0]repl is in normal command mode
[\r\x03\x03] b'\r\n>>> '
[\r\x01] b'\r\n>>> \r\nraw REPL; CTRL-B to exit\r\n>' Ready.

import machine
machine.freq(240*1000*1000)
print(machine.freq())

import network
sta_if = network.WLAN(network.STA_IF)
sta_if.active(True)
sta_if.connect('***', '***')

import upip
upip.install("micropython-pystone_lowmem")

import pystone_lowmem
pystone_lowmem.main()

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

but, after load a earlier version fw from official download page, got the result below:

Code: Select all

MicroPython v1.12 on 2019-12-20; ESP32 module with ESP32
Type "help()" for more information.
>>>[reboot detected 0]repl is in normal command mode
[\r\x03\x03] b'\r\n>>> '
[\r\x01] b'\r\n>>> \r\nraw REPL; CTRL-B to exit\r\n>' 

import machine
machine.freq(240*1000*1000)
print(machine.freq())

import network
sta_if = network.WLAN(network.STA_IF)
sta_if.active(True)
sta_if.connect('***', '***')

import upip
upip.install("micropython-pystone_lowmem")

import pystone_lowmem
pystone_lowmem.main()

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

some one can help?

Re: 499 VS 1661? Why performance reduced a lot when use the newest source build for esp32 port?

Posted: Thu Feb 20, 2020 6:56 am
by jimmo
This is already raised at github -- https://github.com/micropython/micropython/issues/5673 -- let's keep the discussion there.