Linux: Benchmarking

Introduction to selected benchmarking tools for linux-based machines…

glxgears

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.

glmark2

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

glmark2

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:

extension=zip.so

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):

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

An run a selected one:

phoronix-test-suite benchmark glmark2

The test is downloaded and run.

Source.

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