Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions .github/workflows/backend-regression.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Backend performance regression

on:
push:
pull_request:
workflow_dispatch:

jobs:
backend-regression:
name: Backend regression (${{ matrix.backend.name }})
runs-on: ubuntu-latest
permissions:
contents: read
strategy:
fail-fast: false
matrix:
backend:
- name: rust_backend
command: cargo test --release --test backend-regression-bench -- --ignored --nocapture
- name: zlib-rs
command: cargo test --release --test backend-regression-bench --features zlib-rs --no-default-features -- --ignored --nocapture
- name: zlib
command: cargo test --release --test backend-regression-bench --features zlib --no-default-features -- --ignored --nocapture
- name: zlib-ng
command: cargo test --release --test backend-regression-bench --features zlib-ng --no-default-features -- --ignored --nocapture
- name: zlib-ng-compat
command: cargo test --release --test backend-regression-bench --features zlib-ng-compat --no-default-features -- --ignored --nocapture
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install Rust
run: rustup update stable --no-self-update && rustup default stable
shell: bash
- name: Run backend regression benchmark
run: ${{ matrix.backend.command }}
- name: Upload backend benchmark CSV
if: always()
uses: actions/upload-artifact@v4
with:
name: backend-regression-${{ matrix.backend.name }}
path: target/backend-bench/${{ matrix.backend.name }}*.csv
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ exclude = [".*"]
libz-sys = { version = "1.1.20", optional = true, default-features = false }
libz-ng-sys = { version = "1.1.16", optional = true }
# this matches the default features, but we don't want to depend on the default features staying the same
zlib-rs = { version = "0.6.0", optional = true, default-features = false, features = ["std", "rust-allocator"] }
zlib-rs = { version = "0.6.0", optional = true, default-features = false, features = ["std", "rust-allocator", "__internal-api"] }
## This implementation uses only safe Rust code and doesn't require a C compiler.
## It provides good performance for most use cases while being completely portable.
miniz_oxide = { version = "0.9.0", optional = true, features = ["simd"] }
Expand Down
Loading
Loading