Distance between laptop and dumb wifi AP affects Speedtest results much more than it does iperf3 results

Hi,
I've been trying to use a Tp-link Archer C7 v2 router to function as a dumb AP to extend my wifi. I have the Archer C7 connected to my ISP router via ethernet and my laptop connects to the Archer through wifi. I've tested the connection between the Archer and my laptop with iperf3 (with the laptop as the client) and I've also run a speedtest from the laptop.

When distance between AP and laptop is less than a meter :

me@me-MyLaptop:~$ iperf3 -c 192.168.1.2
Connecting to host 192.168.1.2, port 5201
[  5] local 192.168.1.138 port 52726 connected to 192.168.1.2 port 5201
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-1.00   sec  42.3 MBytes   354 Mbits/sec    1    488 KBytes       
[  5]   1.00-2.00   sec  41.1 MBytes   345 Mbits/sec    0    488 KBytes       
[  5]   2.00-3.00   sec  44.6 MBytes   374 Mbits/sec    0    488 KBytes       
[  5]   3.00-4.00   sec  44.6 MBytes   374 Mbits/sec    0    488 KBytes       
[  5]   4.00-5.00   sec  43.4 MBytes   364 Mbits/sec    0    488 KBytes       
[  5]   5.00-6.00   sec  41.7 MBytes   350 Mbits/sec    0    488 KBytes       
[  5]   6.00-7.00   sec  42.4 MBytes   356 Mbits/sec    0    488 KBytes       
[  5]   7.00-8.00   sec  40.5 MBytes   340 Mbits/sec    0    488 KBytes       
[  5]   8.00-9.00   sec  41.8 MBytes   351 Mbits/sec    0    488 KBytes       
[  5]   9.00-10.00  sec  43.1 MBytes   361 Mbits/sec    0    488 KBytes       
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-10.00  sec   425 MBytes   357 Mbits/sec    1             sender
[  5]   0.00-10.01  sec   423 MBytes   355 Mbits/sec                  receiver

iperf Done.

And the Speedtest results are 371.50 Mbps download and 270.85 Mbps upload.


When distance between AP and laptop is between 5 and 6 meters :

me@me-MyLaptop:~$ iperf3 -c 192.168.1.2
Connecting to host 192.168.1.2, port 5201
[  5] local 192.168.1.138 port 37714 connected to 192.168.1.2 port 5201
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-1.00   sec  9.95 MBytes  83.4 Mbits/sec    6    236 KBytes       
[  5]   1.00-2.00   sec  16.2 MBytes   136 Mbits/sec    0    274 KBytes       
[  5]   2.00-3.00   sec  22.4 MBytes   188 Mbits/sec    0    328 KBytes       
[  5]   3.00-4.00   sec  22.0 MBytes   185 Mbits/sec    0    378 KBytes       
[  5]   4.00-5.00   sec  23.7 MBytes   199 Mbits/sec    0    421 KBytes       
[  5]   5.00-6.00   sec  16.6 MBytes   139 Mbits/sec    0    451 KBytes       
[  5]   6.00-7.00   sec  16.2 MBytes   136 Mbits/sec    0    467 KBytes       
[  5]   7.00-8.00   sec  14.4 MBytes   121 Mbits/sec    0    468 KBytes       
[  5]   8.00-9.00   sec  20.2 MBytes   169 Mbits/sec    0    468 KBytes       
[  5]   9.00-10.00  sec  20.4 MBytes   171 Mbits/sec    0    468 KBytes       
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-10.00  sec   182 MBytes   153 Mbits/sec    6             sender
[  5]   0.00-10.01  sec   180 MBytes   151 Mbits/sec                  receiver

iperf Done.

And the Speedtest results are 62.23 Mbps download and 167.70 Mbps upload.

How come my download internet speed is more than half the speed between my laptop and the AP ?

It is to do with wifi txop, probably in further location you have more competing signal.