0.2.69 - Homepage loading improvements pass
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user