Benchmarking your application
summary
Android Studio profiler and systrace expose method-level CPU, memory and network timing so it’s possible to pinpoint the slow method; Perfetto provides a nicer Perfetto UI and can trace on-device. Jetpack Benchmark runs a block repeatedly (dozens of iterations, typically ~50) and emits JSON nanoseconds timings and medians so CI can compare before/after. Datadog captures logs metrics and spans to spot real‑user regressions and integrates with Firebase Test Lab; a Gradle fail-on-threshold plugin enforces limits and Jetpack Benchmark gives repeatable measurements.
AI-written summary · about
chapters (13)
- 0:00Benchmarking your app's performance
- 6:02Making sure the code works Unit Testing - Instrumented Testing Manual Testing Mutation Testing
- 6:55Tools Android Studio Profiler
- 15:03When should you use it? When you have a specific performance issue When you want to optimize a specific part of the code To debug a tricky algorithm (nested loops, concurrency)
- 16:43Benchmark Overview
- 17:07Jetpack Benchmark Library
- 17:32Benchmark Test Class
- 17:51Benchmark Test Function
- 19:33Run the Benchmark
- 23:35When should you use it? Monitor critical parts of your logic in CI When refactoring a specific feature When writing code executed on the main thread
- 25:17App Performance Monitoring Live performance from the trenches
- 31:29When should you use it? Monitor key aspects of your app in the wild
- 32:39Wrapping up
related talks
40mMonitor App performance using Jetpack Benchmark
43mPerformance in a Kotlin World
33mAndroid Benchmarking and other stories
35mIn Search of Performance: the Subtle Art of Android Profiling
30mMeasure What Matters with Jetpack Benchmark
39mDeep-Diving Android Performance with Perfetto
45mPerformance in a Kotlin world
13mPerfetto Your App for Perfect Performance
