Use speedtest-cli to check download and upload speed of your Internet connection. Uses closest mirrors.
git clone https://github.com/sivel/speedtest-cli