Running a speed test Ubuntu session is often the first step for troubleshooting network issues or verifying that your connection is delivering the bandwidth promised by your Internet Service Provider. Whether you are a home user experiencing intermittent lag or a system administrator validating a server configuration, understanding how to perform an accurate measurement is essential. This guide walks through the methods, tools, and best practices for testing speed on Ubuntu, ensuring you gather reliable data every time.
Unlike simple web-based tests, command-line tools provide precise control over the testing process and generate data that is easy to log and analyze. On Ubuntu, a robust ecosystem of open-source utilities allows you to measure throughput to specific servers, test latency, and even stress test your connection with sustained traffic. By combining multiple approaches, you can create a comprehensive picture of your network performance without relying on a single external service.
Common Command-Line Tools for Speed Testing
The Ubuntu terminal offers several purpose-built applications designed specifically for bandwidth measurement. These tools bypass the browser stack to test raw network performance, giving results that are often more accurate and consistent. Installing and using them is straightforward, typically involving the apt package manager.
Speedtest CLI
The Speedtest CLI, maintained by Ookla, is the direct command-line counterpart to the familiar web interface. It selects the nearest server automatically and outputs detailed results, including ping, download speed, and upload speed. It is ideal for quick checks that mirror the experience of a browser test while providing machine-readable output for scripting.
Iperf3
While Speedtest CLI measures real-world throughput to a public server, iperf3 is a powerful tool for controlled performance testing. It requires setting up a server instance on one machine and then running a client to generate traffic. This is particularly useful for internal network diagnostics, allowing you to eliminate variables like internet congestion to focus purely on local infrastructure capability.
Installation and Basic Usage
Getting started with these tools requires minimal effort, as they are available in the default Ubuntu repositories. You can install them using the apt package manager with a single command in the terminal. This section covers the installation and basic execution for the most popular utilities.
Executing speedtest in the terminal will immediately begin the test sequence, searching for the optimal server and displaying the results in Megabits per second (Mbps). For iperf3, you must first start a listener on a target machine using iperf3 -s , and then point your client machine to that server to initiate the measurement. Interpreting the Results Understanding the output of these tests is just as important as running them. A speed test Ubuntu command line output provides metrics that help distinguish between normal variance and genuine performance problems. Key values to focus on include jitter, packet loss, and the consistency of the throughput graph over time.
Interpreting the Results
Jitter, measured in milliseconds, indicates the variability in latency. High jitter can cause VoIP calls to sound choppy or online gaming to feel unresponsive, even if the bandwidth number looks good. Packet loss, expressed as a percentage, reveals data that failed to arrive; even a small loss rate can severely impact streaming and reliability. Comparing your measured Mbps against your ISP's advertised plan helps determine if the network is performing as expected or if further investigation is required.