How to launch glmark2 benchmark

Stable: 01.08.2023 - 15:17 / Revision: 01.08.2023 - 15:03

I am here to prevent the first-page-empty bug!

1 Introduction

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

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

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

2.2 glmark2-es2-drm

  • 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
 glmark2-es2-drm

3 Source code location

4 To go further

You can find the full documentation of glmark2 in the related Ubuntu man page http://manpages.ubuntu.com/manpages/cosmic/man1/glmark2.1.html.

5 References



IMPORTANT NOTICE – READ CAREFULLY
STMicroelectronics NV and its subsidiaries ("ST") reserve the right to make changes, corrections, enhancements, modifications, and improvements to ST products and/or to this document at any time without notice. Purchasers should obtain the latest relevant information on ST products before placing orders. ST products are sold pursuant to ST’s terms and conditions of sale in place at the time of order acknowledgment.

Purchasers are solely responsible for the choice, selection, and use of ST products and ST assumes no liability for application assistance or the design of purchasers’ products.

No license, express or implied, to any intellectual property right is granted by ST herein.

Resale of ST products with provisions different from the information set forth herein shall void any warranty granted by ST for such product.

ST and the ST logo are trademarks of ST. For additional information about ST trademarks, refer to www.st.com/trademarks. All other product or service names are the property of their respective owners.

Information in this document supersedes and replaces information previously supplied in any prior versions of this document.