~/talk

Improving app performance with benchmarking

Talkat Google I/O 2019 · 2019-05-07..05-09· [android, web-performance]
links:none on file
links:none on file
slides:none on file

Library shows how to get stable microbenchmarks for Kotlin Java and some NDK code by applying concrete fixes and tools rather than vague advice It runs a 250 ms warmup then measures repeated loops with a minimum rather than average to avoid contention and caching and offers three thermal strategies depending on device: lock clocks with root, setSustainedPerformanceMode via an injected activity and helper thread on N+, and a Thread.sleep cooldown fallback Benchmarks cut noise from 2.25 ms sd to 0.02 ms and drive real 50% view performance wins using measureRepeated and runWithTimingDisabled

AI-written summary · about

  1. 0:00Introduction
  2. 0:59First benchmark
  3. 3:29The problem with benchmarking
  4. 4:21Common benchmarking mistakes
  5. 7:34Studio benchmark module
  6. 9:27Gradle plugin
  7. 9:57Program rules
  8. 28:25Hot code
  9. 29:00Caches
  10. 29:44Over parameterizing
  11. 32:49Closing notes
  12. 33:27The benchmarking library
  13. 35:30Summary
  14. 35:50Outro
~/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.