Command-Line Network Speed Testing

Is your spider web app slow? Is network bandwidth the problem? To diagnose the problem, commence yesteryear mensuration the network bandwidth. Many users run the popular, web-based speedtest.net to capture speed functioning data. This is a adept solution if the X Window System is installed on the webserver. However, I accept a Linux VPS server without an X graphical environment. Command draw of piece of employment is the alone feasible fashion to perform a speed evidence on that server.

Power Linux users may desire to operate the iperf plan to stair out network bandwidth. To operate iperf effectively, you lot necessitate or together with then basic noesis of TCP/IP. In addition, you lot necessitate to setup iperf to run on 2 machines: the 'client' together with the 'server'. Yet, if you lot similar the simplicity of using speedtest.net, you lot volition live on happy to know the next command-line tool to access speedtest.net servers.

speedtest-cli is a command-line Python plan for testing Internet bandwidth using speedtest.net.

To download, together with configure speedtest-cli, run the next commands:

$ wget -O speedtest-cli https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest_cli.py
$ chmod +x speedtest-cli

To capture the upload together with download speeds of a local machine, you lot tin only run speedtest-cli without whatever parameter. The plan automatically selects the 'best' speedtest.net server to evidence bidirectional transmission from the local machine.

$ ./speedtest-cli
Retrieving speedtest.net configuration...
Retrieving speedtest.net server list...
Testing from Telus Communications (108.180.199.xxx)...
Selecting best server based on latency...
Hosted yesteryear TELUS (Vancouver, BC) [3.73 km]: 34.739 ms
Testing download speed........................................
Download: 3.04 Mbit/s
Testing upload speed..................................................
Upload: 0.74 Mbit/s

In the to a higher house example, the plan selected a evidence server located alone iii kilometers away from the local machine. That is non where most of my spider web visitors are from, namely the due east coast of United States. The speed tests are to a greater extent than useful to me if the evidence server is located order inwards New York city.

You tin designate a specific speedtest.net server inwards your speed testing. First, listing the supported evidence servers.

$ ./speedtest-cli --list
...
982) Interserver, inc (Secaucus, NJ, United States) [3895.32 km]
2947) Atlantic Metro (New York City, NY, United States) [3903.25 km]
663) Optimum Online (New York City, NY, United States) [3903.25 km]
...

Then, conduct ane from the listing to specify every bit the evidence server, order 2947 (Atlantic Metro inwards New York City). To rail network speed functioning to a greater extent than consistently over time, you lot tin designate the same evidence server inwards your subsequent tests.

$ ./speedtest-cli --server 2947
Retrieving speedtest.net configuration... Retrieving speedtest.net server list...
Testing from Telus Communications (108.180.199.xxx)...
Hosted yesteryear Atlantic Metro (New York City, NY) [3903.25 km]: 2629.346 ms
Testing download speed........................................
Download: 2.79 Mbit/s
Testing upload speed..................................................
Upload: 0.84 Mbit/s

For to a greater extent than information almost speedtest-cli parameters, execute the ascendency below.

$ ./speedtest.cli -h

Berlangganan update artikel terbaru via email:

0 Response to "Command-Line Network Speed Testing"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel