Performance & reliability
How do I benchmark a VPS?
Short answer
Measure the three things that actually vary: single-thread CPU with sysbench, disk with fio at 4K random read/write, and network with iperf3 to a known endpoint. Run each several times across different hours — a single benchmark measures that minute, not the server.
Disk is where providers differ most and where synthetic marketing numbers are least useful. Test 4K random IOPS with a queue depth of 1, which is what a database actually does, rather than sequential throughput, which looks impressive and predicts nothing.
Watch steal time throughout the run. A benchmark that looks good at 03:00 and poor at 20:00 is telling you about your neighbours rather than about the hardware.
- sysbench cpu --cpu-max-prime=20000 run — single-thread performance
- fio --name=rand --rw=randrw --bs=4k --iodepth=1 --size=1G --runtime=60
- iperf3 -c a-known-endpoint — real throughput, not the advertised port speed
- vmstat 1 during all of it — watch the st column
See also: IOPS
7 answers in Performance & reliability
- What is CPU steal time and why does it matter? Steal time is the percentage of time your virtual CPU was ready to run but the hypervisor gave the physical core to someone else. It appears as the "s…
- Why is my VPS slow? In order of likelihood: memory exhaustion causing swap thrashing, disk IO saturation, CPU steal time on shared cores, an unoptimised database, or netw…
- How much latency should I expect from a VPS? Within a metro, under 5 ms. Within a continent, 10–40 ms. Across the Atlantic, 70–90 ms. Europe to Asia, 150–200 ms. Antipodal routes, 250–320 ms. Lig…
- How many visitors can a VPS handle? A well-configured 2 vCPU / 4 GB instance serves a static site to millions of monthly visits, a cached WordPress site to roughly 300,000, and an uncach…
- How much faster is NVMe than SATA SSD? Roughly five times the random IOPS — about 500,000 versus 90,000 — and around five times lower latency, under 0.1 ms versus about 0.5 ms. Sequential t…
- What uptime should I expect from a VPS? Our SLA is 99.99% per instance, which permits about 4.4 minutes of downtime a month, and observed availability across the fleet over the last twelve m…