Jetpack Benchmark and where to find them
summary
Shows using Jetpack Benchmark (micro and macro) to find and fix a RecyclerView scroll bottleneck that drives app startup from about 6s down (users report scrolling fixes), with a sample measurement of 7084 ms for a full smooth scroll. Uses measureRepeated, compares parsers (Moshi fastest), runs tests on physical devices via GitHub Actions, outputs JSON results and CI creates PRs with JSON diffs to detect regressions and enforce performance.
AI-written summary · about
chapters (14)
- 0:00Jetpack Benchmark intro
- 2:27Benchmarking matters
- 4:40Jetpack Benchmark library
- 6:03Macro vs micro benchmarks
- 7:28Setting up Benchmark
- 9:58Writing benchmark test
- 11:33Benchmark states
- 12:59Zatoo’s benchmark
- 14:49CI benchmark automation
- 17:20Comparing results across versions
- 20:32Benchmark result examples
- 21:16New Benchmark features
- 23:48Benchmarking vs tests
- 24:08Closing remarks
related talks
26mJetpack Benchmarks and Where to Find Them
30mMeasure What Matters with Jetpack Benchmark
20mMeasure What Matters with Jetpack Benchmark (Lightning)
40mMonitor App performance using Jetpack Benchmark
36mFighting Regressions with Benchmarks in CI
46mDo you need the Jetpack Macrobenchmark library?
10mMeasuring Jank and Startup with Macrobenchmark
33mAndroid Benchmarking and other stories
