Skip to content

nikachapo/Gradle-Profiling-Sample

Repository files navigation

Gradle profiling/benchmarking sample

Check out Medium articles for more insights: Speed Up Android Builds and Profile & Benchmark Android Builds

Different scenarios.txt in different branches:

scenarios/1-gradle-jvm-args

scenarios/2-caching

scenarios/3-changing-files

scenarios/4-kapt-vs-ksp

scenarios/5-parallel-execution

scenarios/6-fork-java-compiler

scenarios/7-jetifier

You can run scenarios using https://github.com/gradle/gradle-profiler

gradle-profiler --benchmark --project-dir ./ --output-dir ./build --scenario-file scenarios.txt --gradle-user-home=./build/gradle

Use ./build directory not to add generated classes in root project

Additionally you can put other measurement params:

--measure-build-op 
--measure-config-time 
--measure-gc 
--measure-local-build-cache

About

Sample of benchmarking android builds with different scenarios

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages