Skip to content

Commit

Permalink
Update benchmark.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
alankritdabral authored Apr 8, 2024
1 parent d8bcf5c commit 903d939
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ jobs:

Cache_Benchmarks:
name: Cache Micro Benchmarks result
if: (github.event_name == 'push' && github.ref == 'refs/heads/main')
permissions:
pull-requests: write
contents: write
Expand All @@ -80,15 +79,11 @@ jobs:
- name: Check out code
uses: actions/checkout@v4

- name: Install Rust
uses: actions-rust-lang/setup-rust-toolchain@v1

- name: Run Benchmarks
run: |
cargo install cargo-criterion rust-script
cargo criterion --message-format=json > benches/main_benchmarks.json
./scripts/json_to_md.rs benches/main_benchmarks.json > benches/main_benchmarks.md
cat benches/main_benchmarks.md
echo "PR number = ${{ github.event.pull_request.number }}"
echo "PR number = ${{ github.ref }}"
- name: Cache Criterion Benchmarks Json
uses: actions/cache@v4
Expand Down

0 comments on commit 903d939

Please sign in to comment.