0.2.69 - Homepage loading improvements pass

This commit is contained in:
ponzischeme89
2026-08-16 21:20:55 +12:00
parent b9374baaf1
commit 845fa349e4
23 changed files with 663 additions and 262 deletions
@@ -27,8 +27,23 @@ class HomeBenchmark {
@Test
fun coldStartToHomeWithProfile() = measureColdStart(CompilationMode.Partial())
/** Returning to Memby while its process is still resident on the television. */
@Test
fun warmStartToHomeWithProfile() = benchmarkRule.measureRepeated(
packageName = PACKAGE_NAME,
metrics = listOf(StartupTimingMetric()),
compilationMode = CompilationMode.Partial(),
startupMode = StartupMode.WARM,
iterations = 5,
setupBlock = { pressHome() },
measureBlock = { startActivityAndWait() },
)
private fun measureColdStart(mode: CompilationMode) = benchmarkRule.measureRepeated(
packageName = PACKAGE_NAME,
// MainActivity calls reportFullyDrawn after Home has submitted its first D-pad-ready
// frame. StartupTimingMetric therefore reports both the opening surface and actual
// time-to-interactive instead of treating the branded intro as a finished launch.
metrics = listOf(StartupTimingMetric()),
compilationMode = mode,
startupMode = StartupMode.COLD,