From bf15e32c18cb4e56faa678bef43a5d1f30370305 Mon Sep 17 00:00:00 2001 From: Amany ElSayed <128927527+CodingPanda166@users.noreply.github.com> Date: Mon, 23 Mar 2026 22:17:39 +0200 Subject: [PATCH] Modify Android benchmark workflow configuration Updated API level and emulator memory settings for benchmarks. --- .github/workflows/Build.yaml | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/.github/workflows/Build.yaml b/.github/workflows/Build.yaml index 31b274d7f..eb369b4b5 100644 --- a/.github/workflows/Build.yaml +++ b/.github/workflows/Build.yaml @@ -2,16 +2,32 @@ name: Benchmark on Emulator on: workflow_dispatch: + # schedule: + # - cron: "0 2,10,18 * * *" jobs: benchmark-android: + strategy: + fail-fast: false + matrix: + benchmark: + #- name: startup + #args: "-e class com.google.samples.apps.nowinandroid.startup.StartupBenchmark#startupWithPartialCompilationAndDisabledBaselineProfile" + #- name: scrollforyou-frametime + #args: "-e class com.google.samples.apps.nowinandroid.foryou.ScrollForYouFeedBenchmark#scrollFeedCompilationBaselineProfile" + - name: scrollforyou-memory-max + args: "-e class com.google.samples.apps.nowinandroid.foryou.ScrollForYouFeedBenchmark#scrollFeedCompilationMemoryMaxBaselineProfile" + name: ${{ matrix.benchmark.name }} uses: Frozen-Bytes/actions/.github/workflows/android-macrobenchmark-gradle.yml@main with: - api-level: 31 + api-level: 34 target: google_apis arch: x86_64 force-avd-creation: true - emulator-options: -no-snapshot -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -memory 4096 + emulator-options: -no-snapshot -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -memory 8192 -cores 4 disable-animations: true gradle-cache-readonly: false - instrument-args: "-e class com.google.samples.apps.nowinandroid.startup.StartupBenchmark#startupPrecompiledWithBaselineProfile" + instrument-args: ${{ matrix.benchmark.args }} + runs: 5 + benchcomp-args: "--verbose --all-methods --all-measures --aggregate median" + artifact-name: "benchmark-${{ matrix.benchmark.name }}"