Linux VPS Network Throughput Test CLI: A Complete Guide
By PulseTest NetworkMeasuring raw bandwidth on a headless server requires a tool that runs entirely in the terminal, and the PulseTest Internet Speed Test provides a browser‑based reference while the CLI version lets you automate tests from SSH without any graphical environment.
Why CLI Benchmarks Matter for VPS
Cloud instances often share physical NICs, so a single‑threaded test can hide contention that only appears under sustained multi‑stream loads; a command‑line utility can spawn parallel connections and capture the true ceiling of the virtual interface.
When you need repeatable numbers for capacity planning, the PulseTest CLI Benchmark installs with a single curl command and returns download, upload, latency, and jitter in a machine‑readable format that scripts can ingest directly.
Because the binary runs in user space, it avoids kernel‑module dependencies that complicate deployments on minimal distributions such as Alpine or Distroless containers, making it ideal for CI pipelines that spin up ephemeral test nodes.
Worked Example: Running a Full Throughput Test
Assume you have a fresh Ubuntu 24.04 VPS with 2 vCPU and 4 GiB RAM; the following steps illustrate a complete run from login to result capture, using hypothetical values for illustration.
- SSH into the instance as a non‑root user with sudo privileges.
- Update the package index with
sudo apt update. - Install curl if missing via
sudo apt install -y curl. - Download and execute the installer:
curl -fsSL https://pulsetest.net | sudo bash. - Verify the binary appears in
/usr/local/bin/pulsetest. - Run a baseline test with
pulsetest --servers 3 --duration 30. - Record the reported download of 950 Mbps, upload of 880 Mbps, latency 12 ms, jitter 1.4 ms.
- Repeat the test after enabling BBR congestion control via
sysctl -w net.ipv4.tcp_congestion_control=bbr. - Observe the new download of 1020 Mbps, upload of 940 Mbps, latency 10 ms, jitter 0.9 ms.
- Export JSON output with
pulsetest --json > /tmp/throughput.jsonfor later analysis. - Schedule a daily cron job to append results to a time‑series database.
The example shows how a single command can produce a full performance snapshot, and how toggling kernel parameters can shift the numbers in a predictable direction.
All figures above are hypothetical; replace them with the actual output from your own environment to build a reliable baseline.
Interpreting Results and Common Pitfalls
Download and upload rates reflect the bottleneck between the VPS and the selected test nodes; if the numbers fall far below the provider’s advertised line rate, investigate CPU steal time, NIC queue limits, or hypervisor‑level traffic shaping.
Latency and jitter are sensitive to bufferbloat on the host’s qdisc; running tc qdisc show dev eth0 reveals whether a large pfifo_fast queue is inflating RTT under load.
Averaging across multiple geographically diverse servers smooths out route‑specific anomalies and yields a more representative picture of the instance’s global connectivity.
Checklist for Reliable Measurements
Before each benchmark run, verify the following conditions to minimise variability and ensure reproducibility.
- CPU idle – confirm
topshows < 5 % user and < 2 % steal. - Network quiescent – stop background apt, backup, or monitoring agents that generate traffic.
- TCP congestion control – set a known algorithm (e.g., BBR) and record it.
- Test duration – use at least 30 seconds per direction to absorb TCP slow‑start effects.
Automating these checks in a wrapper script guarantees that every scheduled run starts from a clean state.
Log the complete environment (kernel version, NIC driver, hypervisor type) alongside the raw JSON so future regressions can be traced to a specific change.
Limitations and Next Steps
Even a well‑configured CLI test cannot isolate latency introduced by the provider’s upstream transit or by middle‑mile congestion beyond the first hop.
The tool measures end‑to‑end throughput only; it does not diagnose packet loss causes such as faulty cables or mis‑configured firewalls.
This week, add a cron entry that runs pulsetest --json >> /var/log/pulsetest.log every morning at 03:00 UTC to start building a longitudinal performance dataset.