This tool automates the process of running local A/B performance micro benchmarks by comparing two Git revisions (branches, commits, tags, etc.). It is designed to help developers quickly measure the performance impact of their changes before code submission.
The script performs the following actions:
main).HEAD~1).Before running the tool, please ensure the following conditions are met:
--serial flag to specify which one to use. The script will exit with an error if multiple devices are detected without a specified ID.To get more stable and reliable benchmark results, it's important to minimize environmental noise. Here are some recommendations:
./benchmark/gradle-plugin/src/main/resources/scripts/disableJit.sh
./benchmark/gradle-plugin/src/main/resources/scripts/lockClocks.sh
userdebug build of AOSP for more performance control. AOSP build do not have GMS services hences reduces background interference.For specific command-line arguments, usage examples, and example output, please see the README for the specific tool you are using:
- MacroBenchmark Tool: For A/B Macro benchmarking
- MicroBenchmark Tool: For A/B Micro benchmarking