Ping defines as 32/64 bytes data transfers from your side of web connection to remote side of.
Generally, you can think of possiblity of obtaining speed of internet connection
However,
When you pinging, another situations may be in active, such as type of internet connection(adsl, fiber optic etc.)
One other thing we cannot eliminate is the connection distance between two remote server, for instance when pinging to google from estonia or india or anywhere else makes different solution due to distance of google server...
and also your internet sharing from other connections make your connection limit upper so transfer and communication gets slower.
finally, your internet speed verification not only element effecting ping speed actually so that you can not get clear conclusion to test your speed.
speedtest-cli
from here instead or simply usewget
as mentioned here too – derHugo Jul 28 '17 at 06:26ping
operates on the transport/network layers of OSI network model, which means it can test if a host is up or how long it takes to reach the host, but it doesn't take into account what other protocols do. It cannot measure "Internet" speed, and doesn't take into account how long websites may take to process your request. It's a very limited network test, so I don't think it's suitable for what you're trying to do – Sergiy Kolodyazhnyy Jul 28 '17 at 06:44