~/talk

Practical guide to performance Benchmarks

Talkat droidcon Italy 2020 · 2020-11-27..11-28· [testing, developer-experience]
slides:none on file

Jetpack Benchmark Library replaces slow, flaky profiler loops with repeatable automated tests that run many iterations, stabilize clocks, and avoid debug-mode skew; using it uncovers real fixes (number format + XML textAppearance) that drop scroll time from ~3 ms to ~1 ms — about 62% better scroll performance — and reveals a viewpager2 prefetch bug that yields ~48% improvement when removed. The workflow includes CI integration to auto-detect regressions and Google’s stepfit-style filtering for noisy signals.

AI-written summary · about

  1. 0:00Start
  2. 13:53detect performance problems
  3. 14:16write automated tests
  4. 17:01use benchmarks in measuring phase
  5. 17:27detect performance regressions
  6. 17:41create a benchmark
  7. 25:35setting the off screen limit onscreen page
  8. 26:59setting off-screen page limit to 1
  9. 29:12retrieve full benchmark report with all results in json files
  10. 30:13compare the results with the result from the previous build
  11. 34:37add a different benchmark using query button
  12. 42:33write ui performance tests
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.