Benchmark measurement

Benchmark measurement

UPDATE 23 APR 2025

Run a benchmark

  • Fastest way to get results with automated test execution

  • Does not provide custom analysis

  • Can run a benchmark on Greenspector Studio directly

Launch with the CLI

It is possible to launch benchmark measures via the CLI. For that, the first configuration steps presented at the beginning of this page must be followed until the device selection.

This feature allows you to run a measure of a website on the TestBench.
To use this feature, you have to first configure the application name, version and the environment to run the measure on.
The command to run is:

gspt testbench measure-url --url [URL]

Options

Mandatory option*

  • --url* : URL to benchmark

  • --iterations: Number of iterations of measure (Default: 1).

  • --browser: Browser to run the measure on. (Default: Google Chrome).

  • --networkMode: Network mode for the test. Values can be "WIFI", "4G", "3G" or "2G". (Default: WIFI).

  • --report: Automatically generate the test report in the .greenspector folder and wait for the job to end. (Default: false).

This command will send a measure request to the server. After this measure has run on the Power Test Bench/Cloud, results are available on the web interface.

Examples

gspt testbench measure-url --url https://greenspector.com/ gspt testbench measure-url --url https://greenspector.com/ --iterations 5 --browser chrome --networkMode 4G gspt testbench measure-url --url https://www.mozilla.org/fr/ --browser firefox --report

This feature allows to benchmark an Android application on the TestBench.
To use this feature, you have to first configure the application name, version and the environment to run the measure on.
The command to run is:

gspt testbench benchmark-apk --app [APK-PATH]

Options

Mandatory option*

  • --app* : APK(s) to benchmark. (If set multiple times, all the APK will be installed but only the first one will be launched and monitored). Can be a local path, a public URL or a package name to download from the PlayStore. Optional if the applications to benchmark are already installed on phone

  • --iterations: Number of iterations of measure you want. (Default: 1).

  • --report: Automatically generate the test report in the .greenspector folder and wait for the job to end. (Default: false).

  • --networkMode: The network mode for the test. Values can be "WIFI", "4G", "3G" or "2G". (Default: WIFI).

This command will send a measure request to the server. After this measure has run on the Test Bench, you will find the results on the Web Interface.

Example

gspt testbench benchmark-apk --app target/final.apk # local path to apkgspt testbench benchmark-apk --app https://demo/demo.apk # apk from public urlgspt testbench benchmark-apk --app com.microsoft.office.outlook # package name to download the apk from the PlayStoregspt testbench benchmark-apk --app target/main.apk --app target/app-module.apk --app target/commons.apk --networkMode 3G # three apk to install and launch benchmark in 3Ggspt testbench benchmark-apk --app target/final.apk --iterations 5 --report # Launch 5 iterations of the benchmark and wait for the report