This has to be the easiest way to perform a speedtest or bandwidth test on a linux box, perform the following:
wget -O speedtest-cli https://raw.github.com/sivel/speedtest-cli/master/speedtest_cli.py
chmod +x speedtest-cli
./speedtest-cli
You should end up with something like this