How to Benchmark a VPS Properly

Manav Mehta 1849 words · 8 min read #vps#benchmarks#infrastructure#performance#operations

The method behind the HostDzire VPS benchmarks: run YABS and nws.sh, capture the raw output, interpret disk, network, and routing results, and state the limits.

Tip (TL;DR)

The HostDzire posts use a deliberately simple method: provision Debian 12, run YABS with the exact command, run nws.sh in default, iperf3, and ping/routing modes, save the full output and result URLs, then interpret the disk, network, and routing data against the plan. The posts are single-run snapshots from Mumbai, not a multi-run laboratory study. Use them as a reproducible baseline, then add repeat runs and workload-specific tests if the decision is expensive.

Most VPS benchmarks are entertainment. A provider runs a script, posts the highest number, and the internet argues about it. The numbers may be real, but they rarely answer the question a buyer or an operator actually has: will this plan perform well for my workload, consistently, at the price I am paying?

This post is not a generic benchmark tutorial. It documents the method used in the HostDzire 16GB and HostDzire 8GB write-ups, so the numbers can be reproduced and the conclusions can be checked. The method is simple enough to repeat and honest enough to show its limits.

What the Blog Actually Does

The workflow in both HostDzire posts is the same:

  1. Provision the VPS with Debian 12 64-bit.
  2. Record the plan, region, and the measured specifications from the YABS output.
  3. Run YABS with the exact command used in the posts.
  4. Run nws.sh in three modes: default global speedtest, iperf3, and ping/routing.
  5. Save the full console output and the nws.sh result URLs.
  6. Interpret the disk, network, and routing results against the plan and the workload.
Stage Command What it gives you
YABS curl -sL https://yabs.sh | bash -s -- -9 -6 System information, fio mixed R/W disk tests at 4k, 64k, 512k, and 1m, iperf3, and Geekbench links
Global speedtest curl -sL https://nws.sh | bash speedtest-cli download, upload, latency, and loss across global endpoints
iperf3 curl -sL https://nws.sh | bash -s -- -iperf iperf3 download, upload, and latency across global endpoints
Ping and routing curl -sL https://nws.sh | bash -s -- -rt global Ping latency, packet loss, and route targets for global networks

The posts use the same scripts and modes. Check the current YABS and nws.sh documentation before reusing the flags; both projects change over time.

Why These Scripts

YABS is useful because it produces a consistent baseline across providers. It records the system information that matters for interpretation, runs a mixed read/write fio test at four block sizes, tests network throughput, and links to Geekbench results. That makes it possible to compare two plans without building a custom test harness for every provider.

nws.sh complements YABS with a broader network view. The default mode uses speedtest-cli against many global locations. The iperf3 mode measures a different endpoint set with a different tool. The ping/routing mode shows whether the network path is clean, lossy, or failing to reach particular regions.

The trade-off is that you inherit the scripts’ choices: their block sizes, their endpoint lists, their fio configuration, and their single-run behavior. That is why the interpretation matters as much as the command.

How to Read the YABS Output

System information

Start with the measured values, not the plan label. The HostDzire 16GB post measured 8 vCPU, 15.6 GiB of RAM, and 196.8 GiB of disk. The 8GB post measured 4 vCPU, 7.7 GiB, and 78.7 GiB. The difference between the advertised and measured capacity is normal: virtualization overhead and filesystem reservation take a small cut.

Also record the CPU model, kernel, VM type, IPv4/IPv6 status, and uptime. A benchmark on a box that has been running for a week under low load is more representative than one taken during a boot storm. The HostDzire runs were taken after several days of uptime with low load averages.

fio disk tests

YABS runs a mixed 50/50 read/write fio test at 4k, 64k, 512k, and 1m. Read the total throughput and the IOPS, not just the headline number.

  • 4k is the small-block story. It matters for databases, container layers, metadata-heavy workloads, and CI.
  • 64k, 512k, and 1m are the larger-block story. They matter for streaming, backups, large file transfers, and some analytics workloads.

The HostDzire results show why one number is not enough:

fio mixed R/W total 8GB plan 16GB plan
4k 475.57 MB/s (116.1k IOPS) 1.11 GB/s (278.5k IOPS)
64k 5.11 GB/s (78.0k IOPS) 3.24 GB/s (50.7k IOPS)
512k 6.87 GB/s (13.1k IOPS) 5.97 GB/s (11.6k IOPS)
1m 7.35 GB/s (7.0k IOPS) 7.14 GB/s (6.9k IOPS)

The 16GB plan is roughly 2.3× faster on 4k mixed I/O. The 8GB plan is faster on the larger block sizes in these runs. That does not mean the 8GB plan is “better”; it means the answer depends on which row your workload cares about. It also means a single “disk score” would hide the most useful part of the data.

iperf3 inside YABS

YABS also runs iperf3 against a small set of providers. Read the send and receive speeds and the ping. Treat busy endpoints as missing data, not as zero. Averages that include busy or failed endpoints are incomplete, and the posts say so.

Geekbench

The captured HostDzire YABS output includes Geekbench 4, 5, and 6 links, but the score fields are blank. Do not cite a Geekbench score that was not captured. If CPU performance is part of the decision, open the links and record the scores, or run a separate CPU test and keep the raw output.

How to Read the nws.sh Output

Global speedtest

The default nws.sh run uses speedtest-cli. It reports latency, loss, download, and upload for each location, then an average. The HostDzire posts use the average as a broad view of global network quality, not as a promise about a specific route.

The 16GB run averaged 2593.99 Mbps down and 886.76 Mbps up. The 8GB run averaged 2694.96 Mbps down and 914.28 Mbps up. The difference is small and could be run-to-run noise. The more important observation is that both plans are multi-gigabit to many locations and much slower to others.

iperf3

The nws.sh iperf3 mode uses a different endpoint set and a different tool from the speedtest-cli run. Do not compare the two averages as if they measure the same thing.

Both HostDzire plans averaged about 760 Mbps down in the iperf3 run. The 16GB plan averaged 280.24 Mbps up; the 8GB plan averaged 258.41 Mbps up. Those numbers are lower than the speedtest-cli averages because the endpoints, protocols, and test conditions are different. That is not a contradiction; it is a reminder to label the test.

Ping and routing

The ping/routing run is where failures become visible. The 16GB run had routing failures in Hong Kong, Tehran, Isfahan, and Amsterdam, plus 40% loss to one Tokyo route; its global speedtest also failed for Moscow and Tokyo. The 8GB run had routing failures in Hong Kong, Tehran, Isfahan, and Amsterdam, and speedtest failures in Moscow, Tokyo, Shanghai, and Jakarta. A failed test is data: it tells you that a route or endpoint was not usable at that moment.

Keep the result URLs. They preserve the raw output and make the post auditable.

What the HostDzire Posts Found

The two posts are a useful pair because they use the same scripts, the same OS, and the same region, with different plan sizes.

Metric 8GB plan 16GB plan
vCPU / RAM / disk 4 / 7.7 GiB / 78.7 GiB 8 / 15.6 GiB / 196.8 GiB
fio 4k mixed total 475.57 MB/s 1.11 GB/s
fio 64k mixed total 5.11 GB/s 3.24 GB/s
fio 512k mixed total 6.87 GB/s 5.97 GB/s
fio 1m mixed total 7.35 GB/s 7.14 GB/s
nws.sh average download 2694.96 Mbps 2593.99 Mbps
nws.sh average upload 914.28 Mbps 886.76 Mbps
iperf3 average download 760.00 Mbps 760.42 Mbps
iperf3 average upload 258.41 Mbps 280.24 Mbps

The interpretation in the posts is deliberately modest:

  • The 16GB plan has more CPU, memory, and small-block disk performance. It is the better candidate for production workloads that need headroom.
  • The 8GB plan is a strong development and staging box. It is not automatically slower on every test; its larger-block disk and global speedtest results are slightly better in these runs.
  • The network is broadly comparable. The 16GB plan is not a “faster network tier” in any meaningful way in this data.
  • The numbers are single-run snapshots from Mumbai. They are evidence for a decision, not a guarantee.

A Reproducible Checklist

  • Provision the same OS image in the same region.
  • Record the provider, plan, price, region, and test date.
  • Capture the system information: CPU, memory, disk, kernel, VM type, IPv4/IPv6, uptime, and load.
  • Run the exact YABS command and save the full output.
  • Run nws.sh in default, iperf3, and ping/routing modes; save the result URLs.
  • Note every busy, FAILED, or lossy endpoint.
  • Run the tests at least three times if the decision is expensive; report the median and spread.
  • Add a workload-specific test if the generic scripts do not answer your question.
  • Publish the commands, script versions, raw output, and limitations.

Common Mistakes

  • Comparing different regions, OS images, or script versions. You are measuring the difference in conditions, not the plans.
  • Quoting the highest single endpoint. One fast city is not a global average.
  • Ignoring busy and failed endpoints. They change the average and they matter to real users.
  • Treating a Geekbench link as a captured score. If the number is not in the output, you do not have it.
  • Treating one run as a distribution. A single snapshot cannot show variance.
  • Comparing speedtest-cli and iperf3 averages directly. They use different tools and endpoint sets.
  • Ignoring the 4k versus large-block difference. The “faster” plan depends on the workload.
  • Assuming the VPS’s speedtest is your users’ experience. Test from the locations that matter.

The Takeaway

The HostDzire posts are a reproducible baseline, not a laboratory study. They use YABS and nws.sh, capture the raw output, and interpret the disk and network data against the plan. That is enough to separate a development box from a production candidate, and enough to show that “more expensive” does not mean “faster on every test.”

If the decision is expensive, keep the same method but add repeat runs, a sustained-load check, and a workload-specific test. Publish the commands and raw data. The goal is not to find the fastest plan in the world. It is to know whether a specific plan will do a specific job, consistently, at a specific price.

References and Attribution

Keyboard Shortcuts