Skip to content

Commit

Permalink
Update GH action
Browse files Browse the repository at this point in the history
  • Loading branch information
HudsonGraeme committed Feb 5, 2024
1 parent 78f104a commit 11b54f8
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions .github/workflows/run_benchmarks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ env:
jobs:
benchmark-tests:
runs-on: ubuntu-latest
default:
run:
working-directory: ${{ github.workspace }}/bench
steps:
- uses: actions/checkout@v4
- uses: software-mansion/setup-scarb@v1
Expand All @@ -27,24 +30,23 @@ jobs:
override: true
components: rustfmt, clippy
- uses: baptiste0928/cargo-install@v1
working-directory: ${{ github.workspace }}/bench

with:
crate: cargo-nextest
locked: true
- name: Cargo clean
working-directory: ${{ github.workspace }}/bench

run: cargo clean
- name: Delete Cargo.lock
working-directory: ${{ github.workspace }}/bench

run: rm -f Cargo.lock
- name: Install Risc0 toolchain
working-directory: ${{ github.workspace }}/bench

run: |
cargo install cargo-binstall
yes | cargo binstall cargo-risczero
cargo risczero install
- name: Install Rust jupyter kernel
working-directory: ${{ github.workspace }}/bench
run: |
cargo install evcxr_jupyter
evcxr_jupyter --install
Expand All @@ -58,20 +60,19 @@ jobs:
tar -xzf ezkl.tar.gz
mv ezkl /usr/local/bin/ # Move the binary to a directory in your PATH
- name: Setup Virtual Env
working-directory: ${{ github.workspace }}/bench
run: python -m venv .env; source .env/bin/activate;
- name: Run linear regression benchmarks across all frameworks
working-directory: ${{ github.workspace }}/bench

run: source .env/bin/activate; cargo nextest run benchmarking_tests::tests::run_benchmarks_::tests_0 --test-threads 1
- name: Run randsom forest benchmarks across all frameworks
working-directory: ${{ github.workspace }}/bench

run: source .env/bin/activate; cargo nextest run benchmarking_tests::tests::run_benchmarks_::tests_1 --test-threads 1
- name: Run svm classification benchmarks across all frameworks
working-directory: ${{ github.workspace }}/bench

run: source .env/bin/activate; cargo nextest run benchmarking_tests::tests::run_benchmarks_::tests_2 --test-threads 1
- name: Run tree ensemble regression benchmarks across all frameworks
working-directory: ${{ github.workspace }}/bench

run: source .env/bin/activate; cargo nextest run benchmarking_tests::tests::run_benchmarks_::tests_3 --test-threads 1
- name: Pretty Print benchmarks.json
working-directory: ${{ github.workspace }}/bench

run: jq '.' benchmarks.json # Pretty print the benchmarks.json file

0 comments on commit 11b54f8

Please sign in to comment.