A selection of generated Android projects buildable with Gradle and Bazel, inspired by https://github.com/sunyal/gradle-profiler. This project reuses some of the configuration and scripts in https://github.com/sunyal/gradle-profiler as well.
These projects are used for A/B testing build optimizations with the build systems.
Building and benchmarking
For all projects, in each subdirectory:
bazel build //androidAppModule0
To benchmark, run the project's
benchmark.sh script to trigger builds with Gradle and Bazel. The results are recorded as CSV and HTML in the project's
The projects are generated using various topologies, listed here.
You can generate more by running:
# Generate the project sources $ java -jar third_party/android-studio-poet-all.jar example_config.json # Prepare the benchmark scripts and generate the Bazel and Gradle dependency graph PNGs $ ./prepare_project.sh $name_of_project
where example_config.json contains your desired project setup.
Remember to refer to the dependency graphs when modifying the file paths in the project's
performance.scenarios. Every project has different Java/Android modules for leaf and root nodes.
Go into the project subdirectory and run
./benchmark.sh. This will trigger Gradle and Bazel to run the scenarios defined in the project's