How to benchmark your GPU on Linux

Linux is not famous for its gaming abilities and possibilities, and it is only natural that there aren't many GPU benchmarking tools available with which users can test their graphics hardware. There are however some benchmarking suites that can help you determine the various aspects of your GPU performance with precision. These are very important for the drawing of solid conclusions, technical and numerical comparison, or for the satisfaction of a plain interest on how (well) things work. Technically speaking, all of the available GPU benchmarking tools in Linux only test under the OpenGL renderer of course. While your GPU may be compatible with some versions of Direct3D, it is not possible to test this renderer under Linux.


GLX gears is a popular OpenGL test that is part of the “mesa-utils” package. Install the package on Ubuntu with this command:

sudo apt-get install mesa-utils

You can invoke it by typing “glxgears” on a terminal.


This will open up a window with an OpenGL rendering of a simple arrangement of three rotating gears. The frame rate is measured and printed out on the terminal every five seconds. This tool is very old, very basic and only tests a small portion of today's OpenGL capabilities. Back in the old days, it was used to determine if the proprietary driver was installed and running properly as open source drivers were performing awfully enough to be perfectly noticeable during this test. Nowadays, you won't notice any difference between the two (in glxgears).

GL Mark 2

GL mark is a much richer benchmarking tool developed by the kind people behind the Linaro distribution. Contrary to glxgears, glmark offers a rich set of tests that concern different aspects of your graphics unit performance (buffering, building, lighting, texturing etc), allowing for a much more comprehensive and meaningful test. Each test is conducted for 10 seconds and the frame rate is counted individually. In the end, users get a performance score based on all previous tests. I like this tool for its simplicity and flawless operation. You can find it as a pre-built package in most distributions under the name “glmark2”. Install it with:

sudo apt-get install glmark2

on Ubuntu.

After installing it, you may run it by typing “glmark2” on a terminal.


Unigine Benchmark Products

Finally, for users that seek something more advanced that the previous two tools, there are four benchmark tools that use the Unigine 3D engine. These are the Valley, Heaven, Tropics and Sanctuary which offer free versions that can be downloaded from the Unigine website. These benchmarking tools boast real-time ambient occlusion, interplaying lights from different sources, HDR renderings, realistic water and a dynamic sky with atmospheric light scattering. Users may also set the anti-aliasing levels, texture quality and filtering, anisotropy and shader quality. Besides hitting that “benchmark” button that will test your hardware in 10 steps, you may also wander around freely, change the time of day (which changes the lighting of the world) and accurately determine the conditions that “bend” your hardware the most.

Share this page:

Suggested articles

12 Comment(s)

Add comment


By: zergel

Thanks this is very helpful! :D

By: behzad

Finally, I can compare my graphic cards on linux. Thank you.

By: pg1

Thanks! It helps me benchmark my old and new video card in Linux Mint.

By: ummer Muqthiar A

Thank U :)

By: federico kiczka

thank you for this benchmark LINUX is the gretest O.S.

By: search_engine_user_1096832495

Very detailed and excellent tutorial. I used this on Ubuntu 17.10 to test out the difference between nvidia and nouveu drivers.

By: Ryan

I get a seg fault when I do try to run the jellyfish (im new to linux, im on ubuntu)

I typed commands same as u said for jellyfish, have nvida card (onyx pro laptop from system 76)

By: tony

helpfull. i was able to test some stuff out on my mint macbook install. =)

By: Catalufots

ok wow for free I find that is much better than 3DMark. Good job mate!

By: Nishandh mayiladan

Appreciate this effort very much, Bill Toulas !I was trying to install PhoronixTS in two systems and was taking forever to get similar installation in both systems. Got tp know th performance differences fast and easy this way !

By: Sudo Sue

Blender exists, as well! It is a 3D program that you can download test renders for, and use the time of rendering single frames as a scale reference.

By: Merc

Thanks, worked like a charm on Ubutu