iPerf is a tool to maximum achievable bandwidth on IP networks. By default iPerf benchmark will run for 20 seconds.
cli:\> iperf -c <se.rv.er.ip> -w <window-size> -p <port>
c:\ iperf -c <aaa.bbb.ccc.ddd> -w 2048 -p 2525
iPerf3.exe -c <aaa.bbb.ccc.ddd> -p 7575 -bidir
iPerf3 -c <aaa.bbb.ccc.ddd> -w 10mB --omit 1
iperf -s -u -i 1s
References: