Projects and scenarios for benchmarking Isolated Projects.
Various scenarios for Sync are located in android-sync.scenarios.
They require:
- Gradle Profiler
v0.24.0or later - Java 21 toolchain
Run Sync benchmarks from the root of this repository, and not from the project directory. You want the Gradle User Home directory used for benchmarks to be located outside of the project directory. By default it is created relative to the current directory (where you run Gradle Profiler from).
gradle-profiler --benchmark \
--scenario-file android-sync.scenarios \
--project-dir android-500-kts \
--studio-install-dir '/path/to/Applications/Android Studio.app' \
--gradle-version 9.5.0-milestone-5 \
--csv-format long \
resync_st_scr_change_pip_warmPass --build-ops-trace if you want to capture build operations trace.
Use --group resync_st_scr_change_warm instead of a scenario name to run all scenarios in the group.
See available groups in the scenario file.
To run Sync benchmarks on projects with Groovy DSL, modify the scenario file by replacing
settings.gradle.kts with settings.gradle and build.gradle.kts with build.gradle.