Quick start
Download the script, read it, then run it:
curl -fsSLO https://raw.githubusercontent.com/PikoSystem/vps-bench/main/vps-bench.sh
less vps-bench.sh
bash vps-bench.sh
A full run takes about two minutes. Root is not required, but the disk read test only runs as root.
What vps-bench measures
| Test | Tool | Notes |
|---|---|---|
| System info | /proc, systemd-detect-virt | OS, kernel, virtualization, CPU model, cores, AES-NI, RAM, swap, disk |
| CPU | sysbench or openssl speed | Single-thread and all-thread scores with sysbench |
| Sequential disk | dd with fdatasync | Write always, read as root after dropping the page cache |
| Random 4K disk | fio | 50/50 read/write IOPS, direct I/O, when fio is installed |
| Network | curl | Download speed and connect time to Hetzner and OVHcloud test files in Europe and the US, plus the nearest Cloudflare edge |
Options
--skip-cpu --skip-disk --skip-net
--disk-size MB sequential test file size (default 1024)
--net-seconds N time limit per download (default 10)
--dir PATH where to write the disk test file
How to read VPS benchmark results
One run is a snapshot. Other tenants on the same host, time of day and network routes all move the numbers. Run vps-bench a few times at different hours, with the same options, before you compare two providers. Disk results depend heavily on the storage type: local NVMe, network block storage and HDD differ by orders of magnitude on 4K random I/O.
vps-bench, YABS and bench.sh
YABS and bench.sh run more tests, such as Geekbench and iperf3. vps-bench is deliberately smaller: one Bash file, no binaries downloaded, so you can audit everything it does before you run it.
Privacy
The script never sends results or system data anywhere. The only network traffic is downloading public test files. The temporary disk test file is removed on exit, including after Ctrl+C.
Need a server to test? vps-bench is maintained by the team behind PikoServer VPS hosting in Germany and France.