Compiling and running UnixBench on Debian and CentOS

Frederic Cambus February 27, 2012 [Linux]

As I'm in the process of migrating and reinstalling some VPS and dedicated servers, I figured it would be a nice opportunity to run benchmarks in order to measure system performance in various cases. I will be using UnixBench for doing so and will post my results during the next couple of days. Meanwhile, here is a tutorial on installing and running UnixBench.

We start by installing (as root) required packages to build the program, follow the instructions related to the Linux distribution you are using:

Debian (this should work for Ubuntu as well):

apt-get install build-essential libx11-dev libgl1-mesa-dev libxext-dev

CentOS:

yum groupinstall "Development Tools"
yum install libX11-devel mesa-libGL-devel perl-Time-HiRes

We then fetch and install UnixBench (at the time of writing, the latest version is 5.1.2):

wget http://byte-unixbench.googlecode.com/files/unixbench-5.1.2.tar.gz
tar xvfz unixbench-5.1.2.tar.gz
cd unixbench-5.1.2
./Run

The 'Run' script will compile everything and launch the tests. Happy benchmarking! :)