~/talk

Benchmark & MacroBenchmark

Talkat Google I/O Extended Montreal 2021 · on Saturday, 2021-06-12· [testing]
links:none on file
slides:none on file

Shows how Jetpack microbenchmark and new macrobenchmark run real-device loops and traces, using Android Studio profiler, trace.h and systrace, with JSON output for CI. Example finds one method costing ~57 ms that makes the render loop drop over 100 ms per frame in an ant-simulation, and microbenchmarks report nanosecond-scale differences for hot paths. Notes need to run benchmarks on the same device, prefer rooted devices for clock stabilization to avoid thermal throttling, and compares repeated launches to expose worst-case startup regressions.

AI-written summary · about

  1. 0:00Introduction and setup
  2. 2:54Why benchmarking matters
  3. 7:14Micro vs MacroBenchmark tools
  4. 16:48What to benchmark properly
  5. 24:23Finding performance bottlenecks
  6. 26:54MacroBenchmark for startup traces
  7. 31:12CI integration and regression tracking
  8. 34:24Key benchmarking tips
  9. 35:48Live demo of MicroBenchmark
  10. 40:30Live demo of MacroBenchmark
  11. 43:29Conclusion and Q&A
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.