What is VPS Benchmarking?

Quick Answer

The most popular command-line tools to benchmark a Linux VPS or server are: VH Benchmark, YABS, nench, vpsbench, vHWINFO, and speedtest-cli. With a single command, you can comprehensively test CPU performance, Disk I/O speeds, network latency, and verify physical hardware.

Just deployed a new Linux VPS and want to ensure the hardware power matches the provider's claims? Using benchmarking tools is the only way to get objective metrics. This article helps you master the top 6 server testing scripts available today.

1. When Should You Benchmark Your VPS?

Benchmarking involves stress-testing the system to its limits to measure real-world strength. You should run these tests when:

  • You've just provisioned a new VPS or Dedicated Server.
  • You need concrete data to compare two different hosting providers.
  • You suspect your system is experiencing CPU throttling or network capping.
  • You are preparing to deploy a heavy application (like a database) to a production environment.

2. Quick Comparison of Benchmark Tools

Each tool has its strengths. Use this table to choose the right one for your specific needs:

Tool Name CPU Test Disk I/O Vietnam Network Test Duration
VH Benchmark Yes Yes Yes (Excellent) Fast (~2 mins)
YABS Yes (Geekbench) Yes No Slow (~10-15 mins)
vpsbench Yes (UnixBench) Yes No Slow (~15 mins)
nench Yes Yes No Very Fast (<1 min)

3. Top 6 Free Linux Benchmark Tools

3.1. VH Benchmark Script (Recommended)

Overview: Developed by VietHosting, this open-source script combines global hardware tests with highly localized network nodes.

  • Key Feature: It's the only tool that measures network speeds directly to major Vietnamese ISPs (VNPT, Viettel, FPT), perfectly reflecting local user experiences.
RUN VH BENCHMARK
curl -Lso- https://mirrors.viethosting.com/scripts/vh-benchmark.sh | bash

3.2. YABS (Yet Another Bench Script)

Overview: YABS has become the gold standard in the international sysadmin community, replacing older scripts. It utilizes industry-standard tools including fio for Disk I/O, iperf3 for network testing, and Geekbench for CPU evaluation.

  • Key Feature: Provides universally recognized Geekbench 5 and 6 scores, allowing for direct CPU performance comparisons with almost any system globally.
RUN YABS
curl -sL yabs.sh | bash

3.3. nench (Super Lightweight)

Overview: nench prioritizes speed over complex CPU calculations, focusing heavily on basic dd I/O tasks.

  • Key Feature: Finishes in under a minute, making it ideal for a rapid health check on a new server.
RUN NENCH
(curl -s wget.racing/nench.sh | bash) 2>&1 | tee nench.log

3.4. vpsbench (In-depth CPU Testing)

Overview: If processing power (rendering, compiling) is your main concern, this tool incorporates the industry-standard UnixBench suite.

  • Key Feature: Returns a specific UnixBench score, allowing for easy side-by-side CPU comparisons between providers.
RUN VPSBENCH
wget https://raw.githubusercontent.com/mgutz/vpsbench/master/vpsbench && bash vpsbench

3.5. vHWINFO (Virtualization Inspector)

Overview: Rather than stress-testing, vHWINFO acts as an inspector to verify if the provider allocated the correct hypervisor configuration.

  • Key Feature: Detects whether the server is using true KVM virtualization or shared OpenVZ containers.
VIEW HARDWARE
wget --no-check-certificate https://github.com/rafa3d/vHWINFO/raw/master/vhwinfo && chmod +x vhwinfo && ./vhwinfo

3.6. speedtest-cli (International Bandwidth)

Overview: The official command-line version of Speedtest.net, dedicated entirely to network testing.

  • Key Feature: Provides highly accurate metrics for Download, Upload, and Latency (Ping).

Install on CentOS / RHEL:

INSTALL (CENTOS/RHEL)
sudo yum install speedtest-cli -y

Install on Ubuntu / Debian:

INSTALL (UBUNTU/DEBIAN)
sudo apt-get install speedtest-cli -y

Run the test:

RUN SPEEDTEST
speedtest-cli

4. How to Interpret Benchmark Results

When the output appears, focus on these critical metrics:

  • Disk I/O (Read/Write Speed): If the result is > 500 MB/s, you're on excellent NVMe/SSD storage. If it's < 100 MB/s, the server might be using old HDDs or experiencing I/O bottlenecking.
  • CPU Model: Verify that the chip name matches a high-end enterprise model (e.g., Intel Xeon Platinum).
  • Network Speed: If you are testing a Vietnam VPS, download speeds from local nodes should comfortably reach tens or hundreds of Megabytes per second.

5. Common Benchmarking Errors

If your test fails or stalls, consider these common issues:

  • "curl: command not found" or "wget: command not found": Your VPS lacks basic downloading utilities. Run yum install curl wget -y (CentOS) or apt-get install curl wget -y (Ubuntu) first.
  • The benchmark hangs indefinitely: YABS's Geekbench and UnixBench processes typically take 10 - 20 minutes. If it hangs on network tests, the server might be struggling with international routing. Use VH Benchmark to focus purely on domestic connections.
  • Scores are unusually low: Running a benchmark while your server is actively handling high production traffic skews the results. Test during off-peak hours.

6. Conclusion

Utilizing tools like VH Benchmark or YABS is the most transparent way to evaluate server quality. A system that scores high in CPU operations and Disk I/O provides a rock-solid foundation for a high-traffic website.

Select the Optimal Server Solution

Looking for a server infrastructure that achieves maximum scores across all benchmarks? Experience unparalleled hardware power with Enterprise SSD storage and Intel Xeon Platinum processors at VietHosting.

More Technical Guides

Explore additional technical guides and practical tutorials to optimize performance and manage your server infrastructure efficiently.