glxgears is a GLX demo that draws three rotating gears, and prints out framerate information to stdout. Command line options include:
-info
Print out GL implementation information before running the demo.
-display displayname
Specify the display to query.