Skip to content

Commit

Permalink
Fix benchmark results caching issue (#24)
Browse files Browse the repository at this point in the history
* Use different artifact to prevent conflicts

* Update Benchmark Plots

* LS

* Update Benchmark Plots

* Delete .svg before downloading artifacts

* Update Benchmark Results

* Verbose rm

* Update Benchmark Results

* Wtf it does not work ?

* Update Benchmark Results

* Add fricking LS back

* Update Benchmark Results

* Try using buildjet cache instead

* Update Benchmark Results

* Fix CI

---------

Co-authored-by: Olivier Giniaux <[email protected]>
Co-authored-by: Benchmark Bot <[email protected]>
  • Loading branch information
3 people authored Nov 23, 2023
1 parent e377038 commit 7482b7e
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 548 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/bench.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ jobs:
- name: Benchmark AVX2 (nightly)
run: cargo bench --bench throughput --features 'bench-plot avx2'

- uses: actions/upload-artifact@v3
- uses: buildjet/cache@v3
with:
name: benches
key: benches-${{ github.sha }}
path: benches/throughput/*.svg

benchmark-arm:
Expand All @@ -38,9 +38,9 @@ jobs:
- name: Benchmark
run: cargo bench --bench throughput --features 'bench-plot'

- uses: actions/upload-artifact@v3
- uses: buildjet/cache@v3
with:
name: benches
key: benches-${{ github.sha }}
path: benches/throughput/*.svg

commit:
Expand All @@ -53,18 +53,21 @@ jobs:

steps:
- uses: actions/checkout@v4

- name: Delete Previous Benchmark Results
run: rm -v benches/throughput/*.svg

- name: Download Benchmark Results
uses: actions/download-artifact@v3
uses: buildjet/cache@v3
with:
name: benches
key: benches-${{ github.sha }}
path: benches/throughput

- name: Commit & Push Plots
- name: Commit & Push Benchmark Results
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Update Benchmark Plots
file_pattern: '*.svg'
commit_message: Update Benchmark Results
commit_user_name: Benchmark Bot
commit_user_email: [email protected]
commit_author: Benchmark Bot <[email protected]>
Expand Down
168 changes: 0 additions & 168 deletions benches/throughput/aarch64.svg

This file was deleted.

Loading

0 comments on commit 7482b7e

Please sign in to comment.