This is an old revision of the document!
https://askubuntu.com/questions/104755/how-to-check-internet-speed-via-terminal
curl -s https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py | python -
curl -s https://checkip.dyndns.org | sed -e 's/.*Current IP Address: ' -e 's/<.*$'
curl https://ipinfo.io/ip