perf(ci): speed up running the startup benchmark

pull/2098/head^2
Ahmed Khaled 5 months ago
parent 89e87e85e3
commit 10c8917ca6
No known key found for this signature in database

@ -21,10 +21,11 @@ run_benchmark() {
adb shell rm /sdcard/Download/*.perfetto-trace || true
adb shell rm /sdcard/Download/*.txt || true
# Run only the Startup benchmark
# Run only the Startup Baseline Profile benchmark
adb shell am instrument -w \
-e class com.google.samples.apps.nowinandroid.startup.StartupBenchmark \
-e class com.google.samples.apps.nowinandroid.startup.StartupBenchmark#startupPrecompiledWithBaselineProfile \
-e androidx.benchmark.suppressErrors EMULATOR \
-e androidx.benchmark.profiling.mode none \
-e no-isolated-storage true \
-e additionalTestOutputDir /sdcard/Download \
$BENCHMARK_PKG/$TEST_RUNNER

@ -61,7 +61,7 @@ class StartupBenchmark {
metrics = BaselineProfileMetrics.allMetrics,
compilationMode = compilationMode,
// More iterations result in higher statistical significance.
iterations = 20,
iterations = 5,
startupMode = COLD,
setupBlock = {
pressHome()

Loading…
Cancel
Save