My MacBook Pro (15-inch, 2018) has WiFi problems. It sometimes takes 30 seconds to connect, and even once connected the WiFi will occasionally lock up and have to reconnect. I've also seen hints that, even while apparently "connected", my connections will hiccup or slow way down.
I have AppleCare+, so I'll be calling them, but before I do I want to measure the extent of the problem. So: how can I measure the quality of a WiFi connection, preferably from the command line? (I'll set up a script to measure and log the results every 10 seconds.)