Measuring net speed

Thanks to my good friend Berge for the hint on how to measure net speeds somewhat reliably:

On one computer, do nc -l 1338 | pv > /dev/null, and on the other cat /dev/zero | pv | nc HOST 1338.