How to launch glmark2 benchmark

Revision as of 12:51, 23 October 2020 by Philippe Cornu (talk | contribs) (glmark2 is now delivered in vendorfs so no need to build it anymore.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

1 Introduction[edit]

glmark2 is an OpenGL 2.0 and ES 2.0 benchmark, developed by Alexandros Frantzis and Jesse Barker. It is based on the original glmark benchmark by Ben Smith. extracted from The glmark2 official web site [1]

2 Using glmark2[edit]

Building glmark2 generates 2 binaries:

  • glmark2-es2-wayland, to launch glmark2 benchmark as a wayland client.
  • glmark2-es2-drm, to launch glmark2 benchmark as a native DRM/GBM openGLES application.

2.1 glmark2-es2-wayland[edit]

  • Start Weston (if not already started)
 systemctl start weston@root.service
  • Launch glmark2

2.2 glmark2-es2-drm[edit]

  • Stop Weston
 systemctl stop weston@root.service
  • The DRM display mode may need to be set and the DRM master token released so that glmark2 can use the DRM interfaces. This depends on the glmark2 version. For instance:
 modetest -s 27:720x1280 -d &

Note: The connector and the mode are given as an example.

  • Launch glmark2

3 Source code location[edit]

4 To go further[edit]

You can find the full documentation of glmark2 in the related Ubuntu man page

5 References[edit]