Benchmarking Your Server's Performance
These tools help you verify hardware performance and identify bottlenecks.
CPU Benchmark — sysbench
apt install sysbench -y
sysbench cpu --threads=4 run
Look at events per second — higher is better.
CPU and RAM Stress Test — stress-ng
apt install stress-ng -y
stress-ng --cpu 4 --vm 2 --vm-bytes 512M --timeout 60s --metrics-brief
Useful to verify stability under load before deploying production workloads.
Disk I/O Benchmark — fio
apt install fio -y
# Sequential write test
fio --name=seqwrite --rw=write --bs=1M --size=1G --numjobs=1 --runtime=30 --time_based --group_reporting
# Random read/write (IOPS test)
fio --name=randread --rw=randread --bs=4k --size=1G --numjobs=4 --runtime=30 --time_based --group_reporting
NVMe drives should show >100K IOPS on random reads; SATA SSDs typically 10–50K IOPS.
Network Throughput — iperf3
apt install iperf3 -y
# On the server:
iperf3 -s
# From another machine:
iperf3 -c YOUR_SERVER_IP
A 1 Gbps port should show ~940 Mbps throughput; 10 Gbps ports ~9.4 Gbps.
Overall System Info
apt install inxi -y
inxi -Fxz
Shows CPU, RAM, disk, network, and kernel info in a clean summary.