štvrtok 6. februára 2020

speedtest v konzle

Ako si zmerať rýchlosť internetu? Resp. používate speedtest aj v konzole?

Občas si treba zmerať rýchlosť internetu. Ako na to? Skúsme to cez nástroj speedtest.





1) je to v pythone, treba si nainštalovať python-pip


root@guliverkel:/home/martin# apt-get install python-pip
Reading package lists... Done
Building dependency tree     
Reading state information... Done
The following additional packages will be installed:
  build-essential dpkg-dev g++ g++-6 libalgorithm-diff-perl libalgorithm-diff-xs-perl libalgorithm-merge-perl libdpkg-perl libexpat1-dev libfile-fcntllock-perl libpython-all-dev libpython-dev libpython2.7-dev libstdc++-6-dev python-all python-all-dev
  python-cffi-backend python-crypto python-cryptography python-dev python-enum34 python-idna python-ipaddress python-keyring python-keyrings.alt python-pip-whl python-pkg-resources python-pyasn1 python-secretstorage python-setuptools python-six python-wheel python-xdg
  python2.7-dev
Suggested packages:
  debian-keyring g++-multilib g++-6-multilib gcc-6-doc libstdc++6-6-dbg libstdc++-6-doc python-crypto-dbg python-crypto-doc python-cryptography-doc python-cryptography-vectors python-enum34-doc gir1.2-gnomekeyring-1.0 python-fs python-gdata python-kde4 python-keyczar
  doc-base python-secretstorage-doc python-setuptools-doc
The following NEW packages will be installed:
  build-essential dpkg-dev g++ g++-6 libalgorithm-diff-perl libalgorithm-diff-xs-perl libalgorithm-merge-perl libdpkg-perl libexpat1-dev libfile-fcntllock-perl libpython-all-dev libpython-dev libpython2.7-dev libstdc++-6-dev python-all python-all-dev
  python-cffi-backend python-crypto python-cryptography python-dev python-enum34 python-idna python-ipaddress python-keyring python-keyrings.alt python-pip python-pip-whl python-pkg-resources python-pyasn1 python-secretstorage python-setuptools python-six python-wheel
  python-xdg python2.7-dev
0 upgraded, 35 newly installed, 0 to remove and 0 not upgraded.
Need to get 43.1 MB of archives.
After this operation, 96.0 MB of additional disk space will be used.
Do you want to continue? [Y/n]





2) pomocou pip install nainštalujeme speedtest-cli

root@guliverkel:/home/martin# pip install speedtest-cli
Collecting speedtest-cli
  Downloading https://files.pythonhosted.org/packages/c4/44/dfebd38c5fb35aae0a7279e2a3ffe33ca65edb449a586b93addc8d409a71/speedtest_cli-2.1.2-py2.py3-none-any.whl
Installing collected packages: speedtest-cli
Successfully installed speedtest-cli-2.1.2


3)spustíme speedtest pomocou príkazu speedtest:

výsledok:

 root@guliverkel:/home/martin# speedtest
Retrieving speedtest.net configuration...
Testing from SNP_11 (1.2.3.4)...
Retrieving speedtest.net server list...
Selecting best server based on ping...
Hosted by SNP11_net (Zemplínske Jastrabie) [5.63 km]: 11.124 ms
Testing download speed................................................................................
Download: 1147.24 Tbit/s
Testing upload speed................................................................................................
Upload: 4621.27 Tbit/s
root@guliverkel:/home/martin#

Žiadne komentáre:

Zverejnenie komentára