iperf

Works on Windows, Linux, Android, MacOS X, FreeBSD, OpenBSD, NetBSD, VXWorks, Solaris (and possibly others)

Install

There are two versions: iperf (iperf2) and iperf3...

sudo apt install iperf
sudo apt install iperf3

Usage

iperf
iperf3