Linux Test network speed

Source: Internet
Author: User
Tags unpack git clone

Speedtest is an open source software for testing network performance, and installing Speedtest under Linux can be used to test the speed of uploading and downloading of network exits to help troubleshoot network failures.


Apt Install Python-pip

Pip Install Speedtest-cli

which SPEEDTEST-CLI | Bash-


GitHub installation

Pip Install Git+https://github.com/sivel/speedtest-cli.git

Or

git clone https://github.com/sivel/speedtest-cli.git

Python speedtest-cli/setup.py Install


Shell installation

Wget-o speedtest-cli https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest_cli.py

chmod +x SPEEDTEST-CLI

./speedtest-cli

SPEEDTEST-CLI use

Speedtest-cli–h

/usr/bin/speedtest-cli–share

/usr/bin/speedtest-cli–list



The process is as follows:---------------------------------------------------------------------------

[Email protected]:/home/zj131# apt install python-pipreading package lists ...  DoneBuilding dependency tree... 0%Building dependency tree        reading state information... donethe following additional  packages will be installed:  libexpat1-dev libpython-all-dev  libpython-dev libpython2.7-dev python-all python-all-dev  python-dev  python-pip-whl python-setuptools python-wheel python2.7-devsuggested packages:   python-setuptools-docthe following new packages will be installed:   libexpat1-dev libpython-all-dev libpython-dev libpython2.7-dev python-all  python-all-dev  python-dev python-pip python-pip-whl python-setuptools  python-wheel python2.7-dev0 upgraded, 12 Newly installed, 0 to remove and 146 not upgraded. Need to get 29.7 mb of archives. after this operation, 44.7 mb of additional disk space will  Be used. get:1 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libexpat1-dev  amd64 2.1.0-7ubuntu0.16.04.3 [115 kb]get:2 http://us.archive.ubuntu.com/ubuntu  xenial-updates/main amd64 libpython2.7-dev amd64 2.7.12-1ubuntu0~16.04.1 [27.8  Mb]get:3 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 libpython-dev amd64  2.7.11-1 [7,728 b]get:4 http://us.archive.ubuntu.com/ubuntu xenial/main amd64  libpython-all-dev amd64 2.7.11-1 [992 b]get:5 http://us.archive.ubuntu.com/ ubuntu xenial/main amd64 python-all amd64 2.7.11-1 [978 b]    get:6 http://us.archive.ubuntu.com/ubuntu xenial-updates/main  amd64 python2.7-dev amd64 2.7.12-1ubuntu0~16.04.1 [276 kb]get:7 http:// us.archive.ubuntu.com/ubuntu xenial/main amd64 python-dev amd64 2.7.11-1 [1,160  B]  Get:8 http://us.archive.ubuntu.com/ubuntu xenial/main amd64  Python-all-dev amd64 2.7.11-1 [1,000 b]get:9 http://us.archive.ubuntu.com/ubuntu  xenial-updates/universe amd64 python-pip-whl all 8.1.1-2ubuntu0.4 [1,110  Kb]get:10 http://us.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 python-pip  all 8.1.1-2ubuntu0.4 [144 kb]get:11 http://us.archive.ubuntu.com/ubuntu xenial/ main amd64 python-setuptools all 20.7.0-1 [169 kb]get:12 http:// Us.archive.ubuntu.com/ubuntu xenial/universe amd64 python-wheel all 0.29.0-1 [48.0 kb]fetched 29.7 mb in  1min 49s  (272 kb/s)                                                               selecting previously unselected  package libexpat1-dev:amd64. (reading database ... 107922 files and directories currently installed .) PREPARING TO UNPACK .../LIBEXPAT1-DEV_2.1.0-7UBUNTU0.16.04.3_AMD64.DEB&NBSP, ..... unpacking libexpat1-dev:amd64  (2.1.0-7ubuntu0.16.04.3)   Selecting previously unselected package libpython2.7-dev:amd64. preparing to unpack .../libpython2.7-dev_2.7.12-1UBUNTU0~16.04.1_AMD64.DEB&NBSP, ..... unpacking libpython2.7-dev:amd64  (2.7.12-1ubuntu0~16.04.1)   Selecting previously unselected package libpython-dev:amd64. PREPARING TO UNPACK .../LIBPYTHON-DEV_2.7.11-1_AMD64.DEB&NBSP, ..... unpacking libpython-dev:amd64  (2.7.11-1)   Selecting previously unselected package libpython-all-dev:amd64. PREPARING TO UNPACK .../LIBPYTHON-ALL-DEV_2.7.11-1_AMD64.DEB&NBSP, ..... unpacking libpython-all-dev:amd64  (2.7.11-1)   Selecting previously unselected package python-all. PREPARING TO UNPACK .../PYTHON-ALL_2.7.11-1_AMD64.DEB&NBSP, ..... unpacking python-all  (2.7.11-1)   selecting previously unselected package python2.7-dev.preparing to unpack  .../python2.7-dev_2.7.12-1ubuntu0~16.04.1_amd64.deb .. unpacking python2.7-dev  (2.7.12-1ubuntu0~16.04.1)   SElecting previously unselected package python-dev. PREPARING TO UNPACK .../PYTHON-DEV_2.7.11-1_AMD64.DEB&NBSP, ..... unpacking python-dev  (2.7.11-1)   Selecting previously unselected package python-all-dev. PREPARING TO UNPACK .../PYTHON-ALL-DEV_2.7.11-1_AMD64.DEB&NBSP, ..... unpacking python-all-dev  (2.7.11-1)   SELECTING PREVIOUSLY UNSELECTED PACKAGE PYTHON-PIP-WHL. PREPARING TO UNPACK .../PYTHON-PIP-WHL_8.1.1-2UBUNTU0.4_ALL.DEB&NBSP, ..... unpacking python-pip-whl  (8.1.1-2ubuntu0.4)   Selecting previously unselected package python-pip. PREPARING TO UNPACK .../PYTHON-PIP_8.1.1-2UBUNTU0.4_ALL.DEB&NBSP, ..... unpacking python-pip  (8.1.1-2ubuntu0.4)   Selecting previously unselected package python-setuptools. preparing to unpack .../python-setuptools_20.7.0-1_all.deb ... unpacking python-setuptools  (20.7.0-1)   Selecting previously unselected package python-wheel. PREPARING TO UNPACK .../PYTHON-WHEEL_0.29.0-1_ALL.DEB&NBSP, ..... unpacking python-wheel  (0.29.0-1)   processing triggers for man-db  (2.7.5-1)   setting up libexpat1-dev:amd64  (2.1.0-7ubuntu0.16.04.3)   setting up libpython2.7-dev:amd64  (2.7.12-1ubuntu0~16.04.1)   setting up libpython-dev:amd64  (2.7.11-1)   setting up libpython-all-dev:amd64  (2.7.11-1)   setting up python-all  (2.7.11-1)   setting up python2.7-dev  (2.7.12-1ubuntu0~16.04.1)   setting up python-dev  (2.7.11-1)   setting up python-all-dev  (2.7.11-1)   setting up python-pip-whl  (8.1.1-2ubuntu0.4)   setting up python-pip  (8.1.1-2ubuntu0.4)   ..... setting up python-setuptools  (20.7.0-1)   setting up python-wheel  (0.29.0-1)   [Email protected]:/home/zj131# pip install speedtest-clicollecting speedtest-cli   downloading speedtest_cli-1.0.7-py2.py3-none-any.whlinstalling collected packages:  speedtest-cliSuccessfully installed speedtest-cli-1.0.7You are using pip  Version 8.1.1, however version 9.0.1 is available. you should consider upgrading via the  ' Pip install --upgrade pip '  command. [email protected]:/home/zj131# which speedtest-cli | bash -retrieving  Speedtest.net configuration ... testing from china telecom zhejiang  (115.239.137.229) ... Retrieving speedtest.net server list ... Selecting best server based on ping ... Hosted by china telecom  (Shanghai)  [159.30 km]: 35.873 mstesting download  speed ........ ...................... ....................... ........ Download: 14.60 mbit/stesting upload speed ................................................................................................ upload: 33.47 mbit/s
[email protected]:/home/zj131# which speedtest-cli/usr/local/bin/speedtest-cli[email protected]:/home/zj131#/usr/ LOCAL/BIN/SPEEDTEST-CLI--shareretrieving speedtest.net configuration ... Testing from China Telecom Zhejiang (115.239.137.229) ... Retrieving Speedtest.net server list ... Selecting best servers based on ping ... Hosted by Unicom (Nanjing) [283.73 miles]: 42.266 mstesting Download speed ................................................................................ download:42.97 mbit/stesting upload Speed ................................................................................................ upload:8.18 Mbit/sshare Results:http://www.speedtest.net/result/6800539811.png


This is the result of the test. Direct URL access to the image display

Http://www.speedtest.net/result/6800539811.png

650) this.width=650; "Src=" Https://s2.51cto.com/oss/201711/17/a3cabb5b9d9a731db5b61396cffabdc2.jpg-wh_500x0-wm_3 -wmp_4-s_2911334957.jpg "title=" Summer "alt=" A3cabb5b9d9a731db5b61396cffabdc2.jpg-wh_ "/>

Linux Test network speed

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.