Skip to content

Commit

Permalink
Move code around to cleanly split zlib-rs specific code from generic …
Browse files Browse the repository at this point in the history
…benchmarking code
  • Loading branch information
bjorn3 committed Dec 18, 2024
1 parent 395f565 commit 3f85a61
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/bench.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ jobs:
run: |
. "$HOME/.cargo/env"
RUSTFLAGS="-Ctarget-cpu=native -Cllvm-args=-enable-dfa-jump-thread" cargo build --target ${{matrix.target}} -p test-libz-rs-sys --release --examples
cd benchmarker && cargo build --release
cp target/${{matrix.target}}/release/examples/blogpost-compress .
cp target/${{matrix.target}}/release/examples/blogpost-uncompress .
- name: Fetch previous benchmark results
run: |
mkdir -p ~/.ssh
Expand All @@ -57,8 +58,7 @@ jobs:
git clone --depth 1 [email protected]:trifectatechfoundation/zlib-rs-bench.git
- name: Benchmark
run: |
cp target/${{matrix.target}}/release/examples/blogpost-compress .
cp target/${{matrix.target}}/release/examples/blogpost-uncompress .
cd benchmarker && cargo build --release
benchmarker/target/release/benchmarker zlib_benchmarks.json zlib-rs-bench/metrics-${{matrix.name}}.json > bench_results.json
- name: Upload benchmark results to artifacts
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit 3f85a61

Please sign in to comment.