This script can be used to measure several benchmarks for build speed. Simply run
tools/android/build_speed/benchmark.py -h to see example input/output and a list of available benchmarks and suites.
Suites are a collection of benchmarks and can be passed by name the same way as any individual benchmark. This is convenient if you want to run a set of benchmarks one after the other. e.g. the
all_incremental suite runs all incremental benchmarks in serial.
Since most benchmarks require the full capacity and parallelism of the workstation, there is no option to run benchmarks in parallel.
This tool will modify certain source files in your current src repository during benchmarks. It will attempt to restore those files to their original content after completing all benchmarks.