Skip to content

Commit

Permalink
Add benchmarks compared to master
Browse files Browse the repository at this point in the history
Signed-off-by: Pavel Abramov <[email protected]>
  • Loading branch information
uncleDecart committed Sep 18, 2024
1 parent a54b76f commit ff751c9
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,28 @@ jobs:

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set safe.directory
run: |
git config --global --add safe.directory /__w/nkv/nkv
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose

- name: Run benchmarks
run: cargo bench
- name: Checkout main branch and run benchmarks
run: |
git checkout main
cargo bench
- name: Checkout PR branch and run benchmarks
run: |
git checkout ${{ github.event.pull_request.head.ref }}
cargo bench
- name: Upload benchmark results
uses: actions/upload-artifact@v3
Expand Down

0 comments on commit ff751c9

Please sign in to comment.