diff --git a/.github/workflows/run_benchmarks.yml b/.github/workflows/run_benchmarks.yml index 4c77231..879d816 100644 --- a/.github/workflows/run_benchmarks.yml +++ b/.github/workflows/run_benchmarks.yml @@ -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 @@ -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 @@ -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