Exact same issue here. Did several tests with ping/tracert. The ones below were repeatable as I opened and closed the lid. I've been pulling my hair out for the past 2 weeks ever since I hooked up an external monitor (which allowed
me to close the lid) the wifi has been awful. My work has basically grounded to a halt while I completely redid the wi-fi in my house.
Also, for what it's worth, once I moved a wifi access point very close to my computer (about 1 foot), it started to be fast again. (The access point as my verizon cell phone on 4G LTE sharing its connection). My home wifi is maybe
10 meters and two walls away.
$ echo 'Power and monitor and keyboard and opened lid'; tracert -d 8.8.8.8
Power and monitor and keyboard and opened lid
Tracing route to 8.8.8.8 over a maximum of 30 hops
1 7 ms 7 ms 3 ms 192.168.1.1
2 22 ms 19 ms 17 ms x.x.x.x
3 22 ms 26 ms 61 ms x.x.x.x
4 26 ms 24 ms 23 ms x.x.x.x
5 25 ms 21 ms 25 ms x.x.x.x
6 38 ms 27 ms 21 ms x.x.x.x
7 149 ms 74 ms 74 ms x.x.x.x
8 49 ms 37 ms 25 ms x.x.x.x
9 36 ms 29 ms 35 ms 8.8.8.8
Trace complete.
username@BookWorm ~
$ echo 'Power and monitor and keyboard and closed lid'; tracert -d 8.8.8.8
Power and monitor and keyboard and closed lid
Tracing route to 8.8.8.8 over a maximum of 30 hops
1 120 ms 527 ms 501 ms 192.168.1.1
2 86 ms 543 ms 478 ms x.x.x.x
3 192 ms 432 ms 527 ms x.x.x.x
4 119 ms 485 ms 647 ms x.x.x.x
5 128 ms 503 ms 568 ms x.x.x.x
6 112 ms 570 ms 496 ms x.x.x.x
7 340 ms 367 ms 573 ms x.x.x.x
8 274 ms 440 ms 563 ms x.x.x.x
9 189 ms 511 ms 508 ms 8.8.8.8
Trace complete.