Skip to content

the gap of performance between gegerate.py with all-in-one with batch 1 is too big #5042

the gap of performance between gegerate.py with all-in-one with batch 1 is too big

the gap of performance between gegerate.py with all-in-one with batch 1 is too big #5042

name: Performance Regression Test
permissions:
contents: read
on:
schedule:
- cron: '0 16 * * *'
issue_comment:
types: [created]
pull_request:
branches: [ main ]
paths:
- '.github/workflows/performance-regression-test.yml'
jobs:
performace-regression-test:
runs-on: [Rohan, ubuntu-20.04-lts]
if: github.event.pull_request || github.event.schedule || github.event.issue.pull_request && github.event.comment.body=='APRT'
steps:
# trigged by opening a PR which modifies this file or scheduling or commenting 'APRT' in a closed PR
- name: checkout (open pr or schedule or closed pr comments)
if: github.event.pull_request || github.event.schedule || github.event.issue.pull_request.merged_at
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # actions/checkout@v3
# trigged by commenting 'APRT' in an opening PR
- name: checkout (opening pr comments)
if: github.event.issue.pull_request && !github.event.issue.pull_request.merged_at
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # actions/checkout@v3
with:
ref: ${{ format('refs/pull/{0}/merge', github.event.issue.number) }}
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.8'
- name: Install dependencies
run: |
apt-get update && sudo apt-get install -y wget libgl1
python -m pip install --upgrade pip
pip install build
pip install wheel
pip install twine
pip install psycopg2-binary
pip install requests
- name: Run benchmark
run: |
wget https://raw.githubusercontent.com/analytics-zoo/gha-cicd-env/main/scripts/benchmark/run.py
python run.py chronos tsdataset_processing
python run.py chronos forecaster_training
python run.py chronos forecaster_inference
python run.py nano torch_inference_optimizer
python run.py nano resnet_inference
python run.py nano resnet50
python run.py nano keras_inference_optimizer
env:
USER: ${{ github.actor }}
PR_URL: ${{ github.event.comment.issue_url }}/comments
COMMENT_URL: ${{ github.event.comment.html_url }}
JOB_URL: https://github.com/intel-analytics/BigDL/actions/runs/${{ github.run_id }}
ANALYTICS_ZOO_ROOT: ${{ github.workspace }}
IS_PR: ${{ github.event.pull_request != null || github.event.issue.pull_request != null }}
IS_COMMENTS: ${{ github.event.issue.pull_request != null }}