Simply download the appropriate (x86 or x64) version from the iPerf site, extract the archive to a location of your choice, and browse to that folder in a command prompt.
iPerf 3 is available from the default repositories in many distros. For example, you would run the following command to install iPerf3 on Ubuntu.
If your distro doesn't have it in the repositories, you can download various binaries here.
|iPerf 3 on Ubuntu|
The easiest way to install iPerf 3 in OSX is to use Homebrew.
Open a terminal and run this command to install Homebrew:
Next, run this command to install iPerf3:
|iPerf 3 on OSX|
On the machine that you want to use as the server, run the following command.
This will start iPerf 3 in server mode, and it will listen for incoming connections.
|iPerf 3 in server mode listening for incoming connections|
Next, run the following command on the client machine:
A session will establish and a test will be run. The progress and results will be displayed on both the client and the server.
|Test results as seen on the server|
|Test results as seen on the client|
iPerf 3 supports a number of command-line options that I didn't cover. To see a complete list of options, go to the iPerf user docs section of the iPerf site.