From a4cb27c44f914237c52597f755788b67f1cf59c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cezary=20Skrzy=C5=84ski?= Date: Thu, 5 Jan 2023 19:58:41 +0100 Subject: [PATCH] Add results processing --- .github/workflows/process-results.yml | 40 +++++++++++++++++++++++++++ README.md | 15 ++++++++++ 2 files changed, 55 insertions(+) create mode 100644 .github/workflows/process-results.yml diff --git a/.github/workflows/process-results.yml b/.github/workflows/process-results.yml new file mode 100644 index 00000000..e2027f4a --- /dev/null +++ b/.github/workflows/process-results.yml @@ -0,0 +1,40 @@ +name: Process benchmark results + +on: + push: + branches: + - main + pull_request: + workflow_dispatch: + +jobs: + run-benchmark-monitor: + runs-on: ubuntu-latest + steps: + - name: Checkout processing script + uses: actions/checkout@v3 + with: + repository: cz4rs/benchmark_monitor + - name: Checkout + uses: actions/checkout@v3 + with: + path: benchmark-results + + - name: Process available benchmark results + run: |- + pip3 install -r requirements.txt + python3 benchmark_monitor.py -d ./benchmark-results -o output + + - name: Generate nojekyll file + working-directory: output + run: touch .nojekyll + + - name: Deploy + if: ${{ github.ref == 'refs/heads/main' }} + uses: JamesIves/github-pages-deploy-action@v4 + with: + folder: output + branch: deploy-benchmarks + clean: true + single-commit: true + diff --git a/README.md b/README.md index 4e9ebca5..3110ad14 100644 --- a/README.md +++ b/README.md @@ -1 +1,16 @@ # kokkos-benchmark-results + +Repository for storing performance benchmark results. + +## Generate performance graphs locally +``` +git clone git@github.com:kokkos/benchmark_monitor.git +git clone git@github.com:kokkos/kokkos-benchmark-results.git +cd benchmark_monitor + +python3 -m venv env +source env/bin/activate +pip install -r requirements.txt +python benchmark_monitor.py -d ../benchmark-results -o output +``` +This will generate `index.html` and the rest of files in `output` diectory.