Page 1 of 1

Wifi performance

Posted: Wed Dec 05, 2018 4:23 pm
by PeterR
Hi,

I have set up an ESP32 STA tcp/ip server which echos whatever it receives.
A python client connects and sends 100*120 bytes and waits for data to be returned before repeating.
Throughput is measured over 10 seconds.

I achieve 25 - 30KB/S in each direction which is much smaller than I had expected.
I am aware that there are only so many lwip buffers & so the ESP server collates 1000 bytes at a time before replying (or on timeout).

Why so slow?

Re: Wifi performance

Posted: Thu Dec 06, 2018 2:11 am
by ESP_Sprite
You're more-or-less measuring the latency of the entire chain by waiting for a response to get back to you. Better to send a whole slew of packets and waiting asynchroneously for them to be acked; that's how TCP/IP normally does it. Or use the iperf example if you want to evaluate what the hardware is capable of.

Re: Wifi performance

Posted: Thu Dec 06, 2018 11:17 am
by PeterR
Thanks, Yes, you're right. Having a bad day....
I will change the client so that the client requires most of the data to be returned before transmitting again (rather than all).