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 type | Single-Core Score | Multi-Core Score | Typical use |
|---|---|---|---|
| Entry VPS | 1000-1500 | 2000-3000 | Web hosting |
| Standard VPS | 1500-2500 | 3000-5000 | Databases |
| Premium VPS | 2500+ | 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 -yInstalling 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/
makeRunning the tests
TIP
It is recommended to run the tests on a "clean" system without active processes
Basic testing
bash
./RunMulti-threaded testing
bash
./Run -c $(nproc) # Uses all available coresOptimising the results
Before testing:
- Cleaning the system
bash
# Clearing the cache
sync; echo 3 > /proc/sys/vm/drop_caches
# Stopping unnecessary services
systemctl stop apache2 mysql nginx- Monitoring temperature
bash
# Installing monitoring utilities
apt install lm-sensors
sensorsInterpreting 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