Traveloka Sep 8, 2022

Automating Android Build Benchmarking with Gradle Profiler

Article Summary

Doni Winata from Traveloka's Android Infra team reveals how his team automated build benchmarking to catch performance regressions before they hit production. For projects with 300+ modules and 15-20 minute build times, manual benchmarking isn't an option.

Benchmarking Android builds is notoriously tricky due to cache states, daemon conditions, and project size. Doni's team integrated Gradle Profiler with Gradle Enterprise on their CI/CD pipeline to automate the entire process, enabling daily monitoring and regression detection without blocking developer machines.

Key Takeaways

Critical Insight

Automating build benchmarks with Gradle Profiler and Gradle Enterprise enabled Traveloka to monitor daily builds, compare branches effortlessly, and catch performance regressions that would otherwise slip through.

The article includes actual benchmark configurations and Jenkins pipeline setup you can adapt for your own Android project.

Recent from Traveloka

Related Articles