Skip to content

UnixBench on Linux: server performance testing

This guide will help you carry out comprehensive performance testing of your server using UnixBench

UnixBench on Linux: server performance testing

What is UnixBench?

UnixBench – one of the most reliable tools for testing Linux servers since 1983. It remains the gold standard for:

  • Assessing overall system performance
  • Comparing different server configurations
  • Identifying performance bottlenecks

Testing areas

Processor operations

  • Dhrystone 2 for integer operations
  • Whetstone for floating-point operations
  • Process creation tests
  • Assessing performance during context switching

Comparison table of results

Server typeSingle-Core ScoreMulti-Core ScoreTypical use
Entry VPS1000-15002000-3000Web hosting
Standard VPS1500-25003000-5000Databases
Premium VPS2500+5000+High-load applications

Installing UnixBench

WARNING

Before installing, make sure the system is updated to the latest version

Preparing the system

bash
# Ubuntu/Debian
sudo apt update && sudo apt upgrade -y
sudo apt install build-essential gcc perl libx11-dev libgl1-mesa-dev -y

# CentOS/RHEL
sudo yum groupinstall "Development Tools" -y
sudo yum install perl-Time-HiRes libX11-devel mesa-libGL-devel -y

Installing UnixBench

bash
wget https://github.com/kdlucas/byte-unixbench/archive/v5.1.3.tar.gz
tar xvf v5.1.3.tar.gz
cd byte-unixbench-5.1.3/UnixBench/
make

Running the tests

TIP

It is recommended to run the tests on a "clean" system without active processes

Basic testing

bash
./Run

Multi-threaded testing

bash
./Run -c $(nproc) # Uses all available cores

Optimising the results

Before testing:

  1. Cleaning the system
bash
# Clearing the cache
sync; echo 3 > /proc/sys/vm/drop_caches

# Stopping unnecessary services
systemctl stop apache2 mysql nginx
  1. Monitoring temperature
bash
# Installing monitoring utilities
apt install lm-sensors
sensors

Interpreting the results

Key metrics of the year:

  • System Benchmarks Index Score
    • < 1000: Optimisation required
    • 1000-2000: A good result
    • 2000: An excellent result
  • Individual tests
    • Dhrystone: measuring integer performance
    • Whetstone: assessing floating-point operations
    • File Copy: the performance of I/O operations

Our resources

Telegram channel: https://t.me/
F3 Cloud: https://f3cloud.com

F3 Cloud Knowledge Base