Geekbench 6 Command Line Tool

The Geekbench 6 command-line tool called geekbench6 provides the same functionality as the graphical user interface. This tool allows you to use Geekbench 6 from a command prompt and automate it with shell scripts or batch files. This is the primary interface for the Linux version of Geekbench 6, and is available as a feature of Geekbench 6 Pro for Windows and Mac.

Install the Tool on macOS

  • Click on the "Tools" menu.
  • Click on the "Install Terminal Command" menu item.

A dialog box will appear asking you to authenticate as an administrator; enter an administrator's username and password and click "Create Links". Another dialog box will appear with usage instructions (if the install was successful) or an error message (if the install encountered a problem). To use the tool enter the following command in a Terminal window:

geekbench6

Technical Details: The geekbench6 command line tool is found inside the Geekbench 6 application bundle. Installing the tool creates a symlink to the tool in /usr/local/bin. If you move Geekbench 6 to another location you will need to re-install the tool as the symlink will point to an incorrect location.

Install the Tool on Windows

  • Click on the "Tools" menu.
  • Click on the "Install Command Prompt Tool" menu item.

A dialog box will appear with usage instructions (if the install was successful) or an error message (if the install encountered a problem). To use the tool open a new command prompt window (command prompt windows that are already open won't be able to find the tool) and enter the following command:

geekbench6

Technical Details: The geekbench6 command line tool is found inside the Geekbench 6 install directory. Installing the tool adds the Geekbench 6 install directory to your PATH environment variable.

Using the Tool

You can get help at any time with the --help switch:

geekbench6 --help

If you don't specify any command-line switches, Geekbench 6 runs the CPU benchmark.

Geekbench 6 displays its progress while it's running the workloads, and displays the section scores and overall scores once all the workloads have run. Geekbench 6 will prompt you as to whether you want to upload the results to the Geekbench Browser.

If you don't want to be prompted (for example, you're running Geekbench 6 as part of a script) you can answer this question ahead of time on the command line with one of the following switches:

  • --upload will automatically upload the result to the Geekbench Browser once the benchmark is complete.
  • --no-upload will not upload the result to the Geekbench Browser once the benchmark is complete.

You can save Geekbench 6 results with the following command line (note that .gb6 is the recommended file extension for Geekbench 6 results):

geekbench6 --save result.gb6

You can also export Geekbench 6 results to different formats. This is a great way to share your results with people who don't have Geekbench 6 installed. Exporting is done with one of the following switches:

  • --export-csv exports the result as a CSV file.
  • --export-html exports the result as an HTML file.
  • --export-json exports the result as a JSON file.
  • --export-text exports the result as a plain-text file.

You can load and display a saved Geekbench 6 result with the following command line:

geekbench6 --load result.gb6

When loading a result, you can manipulate it like any other result. You can upload the saved Geekbench 6 result to the Geekbench Browser by using the following switches:

geekbench6 --load result.gb6 --upload

You can also export the saved Geekbench 6 result in a different format. For example, the following command line with export the saved result as an HTML file:

geekbench6 --load result.gb6 --export-html

You can view the GPU API available on your system with the following command:

geekbench6 --gpu-list

You can then select one GPU compute API to run a benchmark with. For example, we can run an OpenCL benchmark on a system that supports OpenCL with the following command:

geekbench6 --gpu OpenCL

If you have multiple GPUs which support the same GPU API, you can differentiate between them with the platform and device ID numbers that appear before the GPU's name after running geekbench6 --gpu-list. For example, if the output of geekbench6 --gpu-list contains two devices under OpenCL, including 0 1 AMD Radeon VII, you can run the OpenCL benchmark on the Radeon VII with the following command:

geekbench6 --gpu OpenCL --gpu-platform-id 0 --gpu-device-id 1

Troubleshooting

macOS

If you receive a -bash: geekbench6: command not found error message when trying to run Geekbench 6, either the Geekbench 6 command line tool wasn't installed correctly, or the Geekbench 6 application bundle was moved. Please re-install the command-line tool.

If the problem persists, it's possible the geekbench6 link exists but points to the wrong location and Geekbench 6 is unable to remove the incorrect link. Open the Terminal and run ls -al /usr/local/bin/geekbench6 to determine if the link was installed correctly. If the link exists remove the link with sudo rm -rf /usr/local/bin/geekbench6.

If the problem still persists, please contact support.

Windows

If you receive a 'geekbench6.exe' is not recognized as an internal or external command, operable program, or batch file. error message when trying to run Geekbench 6, the Geekbench 6 command line tool wasn't installed correctly, or the command prompt window was opened before the command line tools were installed. Please close all open command prompt windows and open a new command prompt window. If this does not resolve the issue, please re-install the command-line tool and open a new command prompt window.

If the problem still persists, please contact support.