Today I learned that Linux (or at least certainly Ubuntu) will enable power saving mode on a wifi device by default. This resulted in me getting ~300ms pings to my machine on my LAN and very laggy ssh sessions. You can turn it off permanently as described here (or temporarily as described in the question post):
@darius this was always my go-to for sane power management on linux that neither killed my battery or my performance: https://wiki.archlinux.org/index.php/powertop