Friday, 1 May 2020

Internet Speed Test in Linux Terminal

speedtest using python and fast

  python
$ python3 --version
  Python 3.8.2
$ cat /etc/redhat-release
  CentOS Linux release 7.7.1908 (Core)

$ git clone https://github.com/jpmolekunnel/Speed.git
$ cd Speed/
$ python speedtest.py
  Retrieving speedtest.net configuration...
  Testing from Comcast Cable (71.214.251.133)...
  Retrieving speedtest.net server list...
  Selecting best server based on ping...
  Hosted by Sprint (Fairfax, SC) [114.89 km]: 75.946 ms
  Testing download speed................................................................................
  Download: 8.19 Mbit/s
  Testing upload speed.....................................................................................................
  .Upload: 5.94 Mbit/s

  fast
$ wget https://github.com/ddo/fast/releases/download/v0.0.4/fast_linux_amd64 -O fast
$ chmod +x fast
$ ./fast
   -> 11.64 Mbps

Ref:- addictivetips.com tecmint.com

No comments:

Post a Comment