HI,
I am facing a strange result with a very simple test.
I am running a very simple code.
I run the same code using B4R 3.31 and Arduino 1.8.13.
Basically I want to measure how long the above code takes on a esp8266 device (nodemcu v3) and on a esp32 device (esp wroom 32). Specifically the detected chips by the log when I dowload are ESP8266EX and ESP32D0WDQ6 respectively.
When I run the code on the esp8266 I get:
begin
78
completed
100000000
80
it took:
4
When I run it on the EPS32 device, I get:
begin
40
completed
100000000
49
it took:
14
In other words it seems that the ESP32 is way slower than the ESP8266, while I would expected the other way around.
Am I missing somenthing?
thanks!
I am facing a strange result with a very simple test.
I am running a very simple code.
B4X:
Private Sub AppStart
Serial1.Initialize(115200)
Log("AppStart")
Dim ii As ULong, Counter As ULong = 0, StartMils As ULong, EndMils As ULong
StartMils = Millis
Log("begin")
Log(Millis)
For ii = 1 To 100000000
Counter = Counter +1
Next
Log("completed")
Log(Counter)
Log(Millis)
EndMils = Millis - StartMils
Log("it took:")
Log(EndMils)
End Sub
I run the same code using B4R 3.31 and Arduino 1.8.13.
Basically I want to measure how long the above code takes on a esp8266 device (nodemcu v3) and on a esp32 device (esp wroom 32). Specifically the detected chips by the log when I dowload are ESP8266EX and ESP32D0WDQ6 respectively.
When I run the code on the esp8266 I get:
begin
78
completed
100000000
80
it took:
4
When I run it on the EPS32 device, I get:
begin
40
completed
100000000
49
it took:
14
In other words it seems that the ESP32 is way slower than the ESP8266, while I would expected the other way around.
Am I missing somenthing?
thanks!