http client: expected round trip time

clinnemann
Posts: 7
Joined: Sun Jul 09, 2023 7:57 pm

http client: expected round trip time

Postby clinnemann » Wed Dec 27, 2023 8:19 pm

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

thgwwww
Posts: 1
Joined: Sat Dec 30, 2023 5:50 am

Re: http client: expected round trip time

Postby thgwwww » Sat Dec 30, 2023 5:52 am

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!

MicroController
Posts: 1823
Joined: Mon Oct 17, 2022 7:38 pm
Location: Europe, Germany

Re: http client: expected round trip time

Postby MicroController » Sat Dec 30, 2023 8:44 pm

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...

Who is online

Users browsing this forum: Bing [Bot] and 83 guests