Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 0 additions & 17 deletions .github/workflows/Build.yaml

This file was deleted.

66 changes: 0 additions & 66 deletions .github/workflows/NightlyBaselineProfiles.yaml

This file was deleted.

82 changes: 0 additions & 82 deletions .github/workflows/Release.yml

This file was deleted.

53 changes: 53 additions & 0 deletions .github/workflows/performance-check.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Performance Check

on:
pull_request:
types: [opened, synchronize, reopened]
workflow_dispatch:

jobs:
benchmark-android:
uses: Frozen-Bytes/actions/.github/workflows/android-macrobenchmark-gradle.yml@v3
strategy:
fail-fast: false
matrix:
include:
- name: "Pixel"
profile: "pixel"
- name: "Nexus_6"
profile: "Nexus 6"
name: ${{ matrix.name }}
with:
api-level: 34
target: google_apis
arch: x86_64
profile: "${{ matrix.profile }}"
gradle-cache-readonly: false
baseline-branch: "main"
candidate-branch: "${{ github.head_ref }}"
instrument-args: "-e package com.google.samples.apps.nowinandroid.Generator"
artifact-name: "benchcomp-${{ matrix.name }}.json"
artifact-macrobenchmark-name: "${{ matrix.name }}-raw-macrobenchmark"
device-alias: "${{ matrix.name }}"

publish-report:
runs-on: ubuntu-latest
needs: benchmark-android
permissions:
pull-requests: write
contents: read

steps:
- name: Create Bot Token
id: app-token
uses: actions/create-github-app-token@v3
with:
client-id: ${{ vars.GH_APP_CLIENT_ID }}
private-key: ${{ secrets.GH_APP_PRIVATE_KEY }}

- name: Publish Report
uses: Frozen-Bytes/actions/publish-report@v3
with:
github-token: ${{ steps.app-token.outputs.token }}
artifact-prefix: "benchcomp-"
comment-on-pr: ${{ github.event_name == 'pull_request' && 'true' || 'false' }}
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class ScrollForYouFeedBenchmark {
packageName = PACKAGE_NAME,
metrics = listOf(FrameTimingMetric()),
compilationMode = compilationMode,
iterations = 5,
iterations = 2,
startupMode = StartupMode.WARM,
setupBlock = {
// Start the app
Expand All @@ -68,7 +68,7 @@ class ScrollForYouFeedBenchmark {
packageName = PACKAGE_NAME,
metrics = listOf(MemoryUsageMetric(MemoryUsageMetric.Mode.Max)),
compilationMode = compilationMode,
iterations = 5,
iterations = 2,
startupMode = StartupMode.WARM,
setupBlock = {
// Start the app
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class ScrollTopicListBenchmark {
packageName = PACKAGE_NAME,
metrics = listOf(FrameTimingMetric()),
compilationMode = compilationMode,
iterations = 5,
iterations = 2,
startupMode = StartupMode.WARM,
setupBlock = {
// Start the app
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class TopicsScreenRecompositionBenchmark {
packageName = PACKAGE_NAME,
metrics = listOf(FrameTimingMetric()),
compilationMode = compilationMode,
iterations = 5,
iterations = 2,
startupMode = StartupMode.WARM,
setupBlock = {
// Start the app
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class StartupBenchmark {
metrics = BaselineProfileMetrics.allMetrics,
compilationMode = compilationMode,
// More iterations result in higher statistical significance.
iterations = 5,
iterations = 2,
startupMode = COLD,
setupBlock = {
pressHome()
Expand Down
Loading