LinuxCommandLibrary

speedtest-rs

Measure internet connection speed

TLDR

Run a full speed test (download and upload)

$ speedtest-rs
copy

Display a list of speedtest.net servers sorted by distance
$ speedtest-rs --list
copy

Run a download test only
$ speedtest-rs --no-upload
copy

Run an upload test only
$ speedtest-rs --no-download
copy

Generate a shareable link to the test results image
$ speedtest-rs --share
copy

Display basic output information only
$ speedtest-rs --simple
copy

SYNOPSIS

speedtest-rs [OPTIONS]

PARAMETERS

-h, --help
    Prints help information.

-V, --version
    Prints version information.

-s, --server
    Specify a server ID to use for the test.

-l, --list
    List available speedtest servers.

--accept-license
    Accept the license of speedtest-rs.

--accept-gdpr
    Accept the GDPR terms of speedtest-rs.

-j, --json
    Output results in JSON format.

DESCRIPTION

speedtest-rs is a lightweight command-line tool written in Rust for testing internet connection speed. It provides download and upload speed measurements, along with latency (ping) information. It aims for simplicity and ease of use, offering a quick way to assess network performance without requiring a graphical interface. It presents its result in human readable form. speedtest-rs can be useful for troubleshooting network issues, verifying internet service provider (ISP) speeds, or simply monitoring network performance over time. It selects the optimal server and calculates the speed based on the transfer time of the data. The command does not require super user privileges and is simple to install with the rust package manager cargo.

CAVEATS

Results may vary based on network conditions, server load, and other factors. The tool relies on publicly available speedtest servers, and their availability can affect test accuracy. Some ISPs may prioritize or throttle speedtest traffic, leading to inaccurate results.

OUTPUT EXPLANATION

The command's output typically includes:
Ping: The latency or round-trip time to the server, measured in milliseconds (ms).
Download Speed: The rate at which data is transferred from the server to your computer, measured in Mbps or Gbps.
Upload Speed: The rate at which data is transferred from your computer to the server, measured in Mbps or Gbps.

HISTORY

speedtest-rs is a relatively recent command-line tool, built using the Rust programming language. It's designed as a faster and more efficient alternative to other speed testing tools. Its usage is growing due to its simplicity and performance.

Copied to clipboard