PikoSystem open source

vps-bench: benchmark a Linux VPS in one command

A small Bash script that tests CPU, disk and network speed on any Linux VPS or dedicated server. Read it in five minutes. It uploads nothing.

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

TestToolNotes
System info/proc, systemd-detect-virtOS, kernel, virtualization, CPU model, cores, AES-NI, RAM, swap, disk
CPUsysbench or openssl speedSingle-thread and all-thread scores with sysbench
Sequential diskdd with fdatasyncWrite always, read as root after dropping the page cache
Random 4K diskfio50/50 read/write IOPS, direct I/O, when fio is installed
NetworkcurlDownload 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.