NTP-1234 | Macrobenchmark | Update analyse.py (#14510)

This commit is contained in:
Shivam Goyal
2025-01-13 11:41:29 +05:30
committed by GitHub
parent 5949616c1d
commit eb537c8ce9
4 changed files with 87 additions and 21 deletions

View File

@@ -1,6 +1,6 @@
/*
*
* * Copyright © 2024 by Navi Technologies Limited
* * Copyright © 2024-2025 by Navi Technologies Limited
* * All rights reserved. Strictly confidential
*
*/
@@ -28,7 +28,7 @@ class NaviBaselineProfile {
@RequiresApi(Build.VERSION_CODES.P)
@Test
fun generate() =
baselineProfileRule.collect(PACKAGE_NAME, maxIterations = 10) {
baselineProfileRule.collect(PACKAGE_NAME, maxIterations = 3) {
startActivityAndAllowPermissions()
performLogin()
waitForHomePage()

View File

@@ -38,7 +38,7 @@ class HomePageScrollBenchmark {
benchmarkRule.measureRepeated(
packageName = PACKAGE_NAME,
metrics = listOf(FrameTimingMetric()),
iterations = 10,
iterations = 3,
startupMode = StartupMode.WARM,
compilationMode = compilationMode,
setupBlock = {

View File

@@ -1,6 +1,6 @@
/*
*
* * Copyright © 2024 by Navi Technologies Limited
* * Copyright © 2024-2025 by Navi Technologies Limited
* * All rights reserved. Strictly confidential
*
*/
@@ -36,7 +36,7 @@ class StartupBenchmark {
packageName = PACKAGE_NAME,
metrics = listOf(StartupTimingMetric()),
compilationMode = compilationMode,
iterations = 10,
iterations = 3,
startupMode = StartupMode.COLD,
setupBlock = { pressHome() },
) {