# Measuring Android Build Times with Reproducible Benchmarks

DevFeed: [Measuring Android Build Times with Reproducible Benchmarks](<https://devfeed.tech/articles/measure-measure-measure-15764.md>)

Original publisher: [Read original article](<https://developer.squareup.com/blog/measure-measure-measure>)

Author: Ralf Wondratschek

Published: 2021-09-28T19:00:00Z

Content type: article

Language: en

Sources: [Square Corner Blog RSS Feed](<https://devfeed.tech/sources/square-corner-blog-rss-feed.md>)

Topics: [LineageOS](<https://devfeed.tech/topics/lineageos.md>), [build times](<https://devfeed.tech/topics/build-times.md>), [build performance](<https://devfeed.tech/topics/build-performance.md>), [Gradle](<https://devfeed.tech/topics/gradle.md>), [Android Gradle Plugin](<https://devfeed.tech/topics/android-gradle-plugin.md>), [ci](<https://devfeed.tech/topics/ci.md>), [dashboards](<https://devfeed.tech/topics/dashboards.md>), [Amazon EC2](<https://devfeed.tech/topics/amazon-ec2.md>)

Tags: [android](<https://devfeed.tech/tags/android.md>), [benchmark](<https://devfeed.tech/tags/benchmark.md>), [build](<https://devfeed.tech/tags/build.md>), [build-times](<https://devfeed.tech/tags/build-times.md>), [cache](<https://devfeed.tech/tags/cache.md>), [ci](<https://devfeed.tech/tags/ci.md>), [ec2](<https://devfeed.tech/tags/ec2.md>), [engineering](<https://devfeed.tech/tags/engineering.md>), [gradle](<https://devfeed.tech/tags/gradle.md>), [gradle-plugin](<https://devfeed.tech/tags/gradle-plugin.md>)

## AI overview

This article describes how to measure Android build times using reproducible benchmarks instead of relying only on Gradle build scans. The benchmarks run offline with a prefetched artifact cache, use Gradle Profiler to warm up and measure builds, and apply incremental Kotlin and Java changes. A daily EC2 pipeline reports results to a backend and dashboard, helping identify tooling improvements and regressions.

## Source excerpt

A journey about how to measure build times for Android