Jetpack Benchmark : Jetpack Component which help you Benchmark your Android AppPie_06_Javent Lienata
summary
Jetpack Benchmark runs instrumentation tests to measure real Android performance, with BenchmarkRule.measureRepeated, JSON output, and CI scripts that start a rooted emulator, lock CPU clocks on rooted emulator and pull artifacts. Example findings: iteration style shows only small tradeoffs but inline functions give large speedup (non-inline vs inline differs by orders of magnitude), inflating layouts reports ~41,000 ns for one layout, and the repo + Gradle setup for a separate benchmark module with debuggable=false works end-to-end.
AI-written summary · about
chapters (14)
- 0:00Introduction to Jetpack Benchmark
- 1:08Why benchmark your app
- 3:14Benchmarking Kotlin code examples
- 8:09Basics of manual benchmarking
- 11:26Jetpack Benchmark library overview
- 13:57Quick start setup guide
- 17:12Layout inflation benchmark example
- 20:21Additional Jetpack Benchmark configs
- 23:37CPU clock stability and locking
- 25:45Running benchmarks on CI
- 31:51Resources and further reading
- 32:36Q&A: Method performance trade-offs
- 34:53Q&A: When to benchmark methods
- 38:33Closing and thanks
related talks
26mJetpack Benchmarks and Where to Find Them
40mMonitor App performance using Jetpack Benchmark
25mJetpack Benchmark and where to find them
33mAndroid Benchmarking and other stories
44mPractical guide to performance Benchmarks
30mMeasure What Matters with Jetpack Benchmark
29mAndroid Benchmarking and other stories
20mMeasure What Matters with Jetpack Benchmark (Lightning)
