Linux: Benchmarking

Introduction to selected benchmarking tools for linux-based machines…


A popular OpenGL testing tool, but not usefull anymore. Usable only for elementary examination that direct rendering works:

glxinfo | grep render
direct rendering: Yes

In Archlinux, it can be installed via the mesa-demos or lib32-mesa-demos packages.


A benchmark for OpenGL (ES) 2.0 which can be installed from AUR (in Archlinux). For starting the tests, execute:


or for a full screen test:

glmark2 --fullscreen

Phoronix Test Suite

PTS was originally developed for Linux, but now serves as a benchmarking tool for BSD, OpenSolaris, Apple Mac OS and Microsoft Windows operating systems as well.

As PTS depends on PHP, you need to do some /etc/php/php.ini modifications after the installation.

First, the open_basedir variable needs to contain the root directory. Yes, the security concern is disputable…

open_basedir = /srv/http/:/home/:/tmp/:/usr/share/pear/:/usr/share/webapps/:/

Second, the same file needs to allow PHP to use the ZIP extension:

Now, the available tests can be listed:

phoronix-test-suite list-available-tests

Unfortunately, PTS uses Python2 language for test management. Therefore, the systems needs to be update accordingly. How to deal with the never-ending Python story in Archlinux, can be found here.

E.g., the executable /usr/local/bin/python script can look like (replace appropriate USERNAME):

script=$(readlink -f -- "$1")
case "$script" in (/home/USERNAME/.phoronix-test-suite/*)
    exec /usr/bin/python2 "$@"
exec /usr/bin/python3 "$@"

An run a selected one:

phoronix-test-suite benchmark glmark2

The test is downloaded and run.


This entry was posted in Apple, BSD, Linux and tagged , , , , , , , , , , , , , . Bookmark the permalink.