Skip to content

Commit

Permalink
parallelize benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
sergejparity committed Dec 7, 2023
1 parent db6861f commit 45fad9a
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,9 @@ jobs:
bench-rust-nightly:
runs-on: ubuntu-latest
needs: [set-image]
strategy:
matrix:
feature: [bit-vec,bytes,generic-array,derive,max-encoded-len]
container: ${{ needs.set-image.outputs.IMAGE }}
steps:
- name: Checkout code
Expand All @@ -140,11 +143,14 @@ jobs:
- name: Bench Rust Nightly
run: |
export RUSTFLAGS='-Cdebug-assertions=y -Dwarnings'
time cargo +nightly bench --features bit-vec,bytes,generic-array,derive,max-encoded-len
time cargo +nightly bench --features ${{ matrix.feature }}
miri:
runs-on: ubuntu-latest
needs: [set-image]
strategy:
matrix:
feature: [bit-vec,bytes,generic-array,arbitrary]
container: ${{ needs.set-image.outputs.IMAGE }}
steps:
- name: Checkout code
Expand All @@ -160,7 +166,7 @@ jobs:
export RUST_BACKTRACE=1
export RUSTFLAGS='-Cdebug-assertions=y -Dwarnings'
export MIRIFLAGS='-Zmiri-disable-isolation'
time cargo +nightly miri test --features bit-vec,bytes,generic-array,arbitrary --release
time cargo +nightly miri test --features ${{ matrix.feature }} --release
# Build

Expand Down

0 comments on commit 45fad9a

Please sign in to comment.