From f2789bc5327af676284dd1a6758865796a710727 Mon Sep 17 00:00:00 2001 From: Matthew Maxwell Date: Thu, 9 Jan 2025 14:54:44 -0800 Subject: [PATCH] fixed perf --- .github/workflows/java-perf.yml | 21 +++++++++++++++++++++ .github/workflows/nodejs-perf.yml | 21 +++++++++++++++++++++ .github/workflows/python-perf.yml | 21 +++++++++++++++++++++ 3 files changed, 63 insertions(+) diff --git a/.github/workflows/java-perf.yml b/.github/workflows/java-perf.yml index 913dd8f9..8a41558d 100644 --- a/.github/workflows/java-perf.yml +++ b/.github/workflows/java-perf.yml @@ -98,3 +98,24 @@ jobs: - name: Machine state after working-directory: resources/scripts run: bash machine-state.sh + + perf-self-hosted-windows-arm64: + runs-on: ${{ matrix.machine }} + + strategy: + fail-fast: false + matrix: + machine: [pv-windows-arm64] + include: + - machine: pv-windows-arm64 + init_performance_threshold_sec: 4.5 + proc_performance_threshold_sec: 1.0 + + steps: + - uses: actions/checkout@v3 + + - name: Build + run: ./gradlew assemble + + - name: Test + run: ./gradlew test --info --tests CheetahPerformanceTest -DpvTestingAccessKey="${{secrets.PV_VALID_ACCESS_KEY}}" -DnumTestIterations="50" -DinitPerformanceThresholdSec="${{matrix.init_performance_threshold_sec}}" -DprocPerformanceThresholdSec="${{matrix.proc_performance_threshold_sec}}" diff --git a/.github/workflows/nodejs-perf.yml b/.github/workflows/nodejs-perf.yml index d7fedd5c..2e03b1b5 100644 --- a/.github/workflows/nodejs-perf.yml +++ b/.github/workflows/nodejs-perf.yml @@ -98,3 +98,24 @@ jobs: - name: Machine state after working-directory: resources/scripts run: bash machine-state.sh + + perf-self-hosted-windows-arm64: + runs-on: ${{ matrix.machine }} + + strategy: + fail-fast: false + matrix: + machine: [pv-windows-arm64] + include: + - machine: pv-windows-arm64 + init_performance_threshold_sec: 3.0 + proc_performance_threshold_sec: 0.8 + + steps: + - uses: actions/checkout@v3 + + - name: Install dependencies + run: yarn install + + - name: Test + run: yarn test perf.test.ts --access_key=${{secrets.PV_VALID_ACCESS_KEY}} --num_test_iterations=50 --init_performance_threshold_sec=${{matrix.init_performance_threshold_sec}} --proc_performance_threshold_sec=${{matrix.proc_performance_threshold_sec}} diff --git a/.github/workflows/python-perf.yml b/.github/workflows/python-perf.yml index 8f3e549c..43a5dbd6 100644 --- a/.github/workflows/python-perf.yml +++ b/.github/workflows/python-perf.yml @@ -106,3 +106,24 @@ jobs: - name: Machine state after working-directory: resources/scripts run: bash machine-state.sh + + perf-self-hosted: + runs-on: ${{ matrix.machine }} + + strategy: + fail-fast: false + matrix: + machine: [pv-windows-arm64] + include: + - machine: pv-windows-arm64 + init_performance_threshold_sec: 4.0 + proc_performance_threshold_sec: 0.7 + + steps: + - uses: actions/checkout@v3 + + - name: Install dependencies + run: pip install -r requirements.txt + + - name: Test + run: python3 test_cheetah_perf.py ${{secrets.PV_VALID_ACCESS_KEY}} 50 ${{matrix.init_performance_threshold_sec}} ${{matrix.proc_performance_threshold_sec}}