Page 1 of 1

http client: expected round trip time

Posted: Wed Dec 27, 2023 8:19 pm
by clinnemann
Hello everybody,

I am interested what the typical round trip time for a single http request in "normal" wifi conditions is (not https).

The reason why I ask is as following:
* 8 out of 10 requests are being dealt with in less than 250 ms.
* 2 out of 10 requests takes really long (>5 seconds).

My question: These two requests taken more than 5 seconds: Is that to be expected? Are there any possibilities to tweak menuconfig to have a better performance?

Thanks a lot!
Christian

Re: http client: expected round trip time

Posted: Sat Dec 30, 2023 5:52 am
by thgwwww
I was having a similar issue when using a cheaply made dev board with a fake SILABS chip on it and I believe I have solved it by underclocking the CPU to 160mhz. This isn't ideal but my http client seems to be a lot more responsive now, similar to my ESP8266 projects.

Hope this helps!

Re: http client: expected round trip time

Posted: Sat Dec 30, 2023 8:44 pm
by MicroController
clinnemann wrote:
Wed Dec 27, 2023 8:19 pm
* 2 out of 10 requests takes really long (>5 seconds).

My question: These two requests taken more than 5 seconds: Is that to be expected? Are there any possibilities to tweak menuconfig to have a better performance?
Incidentally, 5 seconds is the HTTP client's default 'timeout'. You can try playing with esp_http_client_config_t::timeout_ms...