From 5f7bd21543325cbecf200f571de5527db847a303 Mon Sep 17 00:00:00 2001 From: "Thing-han, Lim" <15379156+potsrevennil@users.noreply.github.com> Date: Fri, 28 Jun 2024 18:06:38 +0800 Subject: [PATCH] add ci benchmark on a55 runner Signed-off-by: Thing-han, Lim <15379156+potsrevennil@users.noreply.github.com> --- .github/workflows/bench.yml | 25 ++++++++++++++++++++++--- 1 file changed, 22 insertions(+), 3 deletions(-) diff --git a/.github/workflows/bench.yml b/.github/workflows/bench.yml index 04adcbe35..a0ec54e59 100644 --- a/.github/workflows/bench.yml +++ b/.github/workflows/bench.yml @@ -9,7 +9,11 @@ on: types: [ "labeled" ] jobs: bench: - runs-on: self-hosted-rpi4 + strategy: + fail-fast: true + matrix: + system: [ rpi4, a55 ] + runs-on: self-hosted-${{ matrix.system }} permissions: contents: write if: github.repository_owner == 'pq-code-package' && (github.event.label.name == 'benchmark' || github.ref == 'refs/heads/main') @@ -33,12 +37,18 @@ jobs: ## CPU Info $(cat /proc/cpuinfo) EOF - - name: Run benchmark + - name: Run benchmark on rpi4 + if: ${{ matrix.system }} == rpi4 shell: nix develop .#ci -c bash -e {0} run: | tests bench -c PMU --cflags -mcpu=cortex-a72 -v --output output.json + - name: Run benchmark on a55 + if: ${{ matrix.system }} == a55 + shell: nix develop .#ci -c bash -e {0} + run: | + tests bench -c PERF --cflags "-static -mcpu=cortex-a55" --arch-flags -march=armv8.2-a -w exec-on-a55 -v --output output.json - name: Store benchmark result - if: github.repository_owner == 'pq-code-package' && github.ref == 'refs/heads/main' + if: github.repository_owner == 'pq-code-package' && github.ref == 'refs/heads/main' && ${{ matrix.system }} == rpi4 uses: benchmark-action/github-action-benchmark@v1 with: name: Arm Cortex-A72 (Raspberry Pi 4) benchmarks @@ -46,3 +56,12 @@ jobs: output-file-path: output.json github-token: ${{ secrets.GITHUB_TOKEN }} auto-push: true + - name: Store benchmark result + if: github.repository_owner == 'pq-code-package' && github.ref == 'refs/heads/main' && ${{ matrix.system }} == a55 + uses: benchmark-action/github-action-benchmark@v1 + with: + name: Arm Cortex-A55 (Snapdragon 888) benchmarks + tool: 'customSmallerIsBetter' + output-file-path: output.json + github-token: ${{ secrets.GITHUB_TOKEN }} + auto-push: true