Post4VPS Forum | Free VPS Provider
How to test your VPS Internet speed - Printable Version

+- Post4VPS Forum | Free VPS Provider (https://post4vps.com)
+-- Forum: VPS Discussion (https://post4vps.com/Forum-VPS-Discussion)
+--- Forum: Tutorials (https://post4vps.com/Forum-Tutorials)
+--- Thread: How to test your VPS Internet speed (/Thread-How-to-test-your-VPS-Internet-speed)

Pages: 1 2 3


How to test your VPS Internet speed - AmirGT - 09-11-2017

Hello Folks, today I'm going to explain how to test your VPS Internet speed.
Firstly we need to update and upgrade our VPS so you have to execute this command

For Ubuntu / Debian

Code:
sudo apt-get -y update


For CentOS
Code:
sudo yum -y update


Then upgrade it [For Ubuntu / Debian]

Code:
sudo apt-get upgrade

For CentOS

Code:
sudo yum upgrade


Now you will have to install Python so we will follow this command

Ubuntu / Debian

Code:
sudo apt-get install python

CentOS
Code:
sudo yum install python

After installing Python we will have to get the .py file which we are going to test our VPS speed from it so you have to execute this command

Code:
wget https://raw.githubusercontent.com/systemroot/raws-dev/master/usr/local/raws/ubuntu/st.py

Then we have to grant it the permission to work currently so you have to execute this command
Code:
chmod +x st.py

The last step now is start to test the VPS speed so you have to execute this command
Code:
./st.py --secure --share

And wait for about 25 second to finishes the test....

and finally the result will be like that

Code:
root@amirgt:~# ./st.py --secure --share
Retrieving speedtest.net configuration...
Retrieving speedtest.net server list...
Testing from OVH (xxx.xx.xx.xxx)...
Selecting best server based on latency...
Hosted by Orange (Paris) [1.88 km]: 5.539 ms
Testing download speed........................................
Download: 717.03 Mbit/s
Testing upload speed..................................................
Upload: 140.27 Mbit/s
Share results: https://www.speedtest.net/result/6615237958.png

[Image: 6615237958.png]

I saw the same tutorial here but I think this is more better because of this script has more options you can see it by executing this command
Code:
./st.py --help

So that was our tutorial for today, I hope you liked it. Goodbye. Blush


RE: How to test your VPS Internet speed - youssefbasha - 09-11-2017

Nice tutorial, keep it up.
But as i think that most of vps servers have python already installed.
As my vps already have python latest version :3


RE: How to test your VPS Internet speed - AmirGT - 09-11-2017

(09-11-2017, 06:01 PM)youssefbasha Wrote: Nice tutorial, keep it up.
But as i think that most of vps servers have python already installed.
As my vps already have python latest version :3

You might have installed it because of you are using something requires Python, Btw I explained how to install it for people who don't know. Also thank you for your positive reply. Heart


RE: How to test your VPS Internet speed - akfluffy - 09-11-2017

Nice! BTW guys if you have python 3.x installed, be sure to use python3 in the command instead


RE: How to test your VPS Internet speed - AmirGT - 09-11-2017

(09-11-2017, 07:04 PM)YOuNeS_Dz Wrote: Wow
nice tutorial Amir.. it's too good :o keep your works/Tutorial up Smile

Thank you very much YOuNeS Big Grin I hope you liked it Big Grin

(09-11-2017, 09:34 PM)akfluffy Wrote: Nice! BTW guys if you have python 3.x installed, be sure to use python3 in the command instead

Thank you for additional Big Grin but can you write the full command for people who don't know?


RE: How to test your VPS Internet speed - akfluffy - 09-12-2017

The full command should be: (If you're using python 3)

Code:
python3 st.py --secure --share



RE: How to test your VPS Internet speed - AmirGT - 09-12-2017

Aha, OK then but what is the difference between Python and Python3?


RE: How to test your VPS Internet speed - humanpuff69 - 09-12-2017

that is a long way to do it . i have a better way to do it y. you can use freevps us bench sh . here is the command to get the bench sh
Code:
wget https://freevps.us/downloads/bench.sh
chmod +x bench.sh
./bench.sh
you dont need to install any python and any package . and i prefer the freevps bench over the speedtest cli


RE: How to test your VPS Internet speed - AmirGT - 09-12-2017

(09-12-2017, 09:21 AM)humanpuff69 Wrote: that is a long way to do it . i have a better way to do it y. you can use freevps us bench sh . here is the command to get the bench sh
Code:
wget https://freevps.us/downloads/bench.sh
chmod +x bench.sh
./bench.sh
you dont need to install any python and any package . and i prefer the freevps bench over the speedtest cli

It tests the speed by specific servers but the script I gave above tests the speed by the closest server to you, also this script tests the benchmark of the VPS and one of it is testing the speed. Also the best thing to test the Internet speed is iperf3 because of speedtest servers only gives max 2Gbps speed so if you have like 3Gbps server or 10Gbps or whatever it will only show 1.9Gbps or something close but it will not exceed the 2Gbps.


RE: How to test your VPS Internet speed - sagher - 09-19-2017

(09-11-2017, 04:47 PM)AmirGT Wrote: Hello Folks, today I'm going to explain how to test your VPS Internet speed.
Firstly we need to update and upgrade our VPS so you have to execute this command

For Ubuntu / Debian

Code:
sudo apt-get -y update


For CentOS
Code:
sudo yum -y update


Then upgrade it [For Ubuntu / Debian]

Code:
sudo apt-get upgrade

For CentOS

Code:
sudo yum upgrade


Now you will have to install Python so we will follow this command

Ubuntu / Debian

Code:
sudo apt-get install python

CentOS
Code:
sudo yum install python

After installing Python we will have to get the .py file which we are going to test our VPS speed from it so you have to execute this command

Code:
wget https://raw.githubusercontent.com/systemroot/raws-dev/master/usr/local/raws/ubuntu/st.py

Then we have to grant it the permission to work currently so you have to execute this command
Code:
chmod +x st.py

The last step now is start to test the VPS speed so you have to execute this command
Code:
./st.py --secure --share

And wait for about 25 second to finishes the test....

and finally the result will be like that

Code:
root@amirgt:~# ./st.py --secure --share
Retrieving speedtest.net configuration...
Retrieving speedtest.net server list...
Testing from OVH (xxx.xx.xx.xxx)...
Selecting best server based on latency...
Hosted by Orange (Paris) [1.88 km]: 5.539 ms
Testing download speed........................................
Download: 717.03 Mbit/s
Testing upload speed..................................................
Upload: 140.27 Mbit/s
Share results: https://www.speedtest.net/result/6615237958.png

[Image: 6615237958.png]

I saw the same tutorial here but I think this is more better because of this script has more options you can see it by executing this command
Code:
./st.py --help

So that was our tutorial for today, I hope you liked it. Goodbye. Blush

Get error while making .py file with this command
Code:
wget https://raw.githubusercontent.com/systemroot/raws-dev/master/usr/local/raws/ubuntu/st.py
ERROR: The certificate of 'raw.githubusercontent.com' is not trusted.

ERROR: The certificate of 'raw.githubusercontent.com' hasn't got a known issuer.

Any fix??