Peace be upon you
In this explanation, we show how to install speedtest on Linux servers, whether VPS or Dedicateda Server
for Ubuntu/Debian Systems
sudo apt-get install curl
curl -s https://packagecloud.io/install/repositories/ookla/speedtest-cli/script.deb.sh | sudo bash
sudo apt-get install speedtest
For Fedora/Centos/Redhat Systems
curl -s https://packagecloud.io/install/repositories/ookla/speedtest-cli/script.rpm.sh | sudo bash
sudo yum install speedtest
then to test your server speed just write command
speedtest
Thank you