Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing benchmarks. #580

Merged
merged 2 commits into from
Feb 26, 2025
Merged
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
7 changes: 5 additions & 2 deletions .github/workflows/python-bench.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ on:
push:
branches:
- main
pull_request:


permissions:
Expand All @@ -15,6 +16,8 @@ jobs:
benchmark:
name: Performance regression check
runs-on: ubuntu-latest
env:
MATURIN_PEP517_ARGS: "--features py311,pyo3/extension-module"
steps:
- uses: actions/checkout@v3
- name: Install Rust
Expand All @@ -26,7 +29,7 @@ jobs:
- name: Install Python
uses: actions/setup-python@v2
with:
python-version: "3.10"
python-version: "3.11"
architecture: "x64"

- name: Install
Expand All @@ -38,7 +41,7 @@ jobs:
- name: Run tests
working-directory: ./bindings/python
run: |
cargo test
cargo test --features py311
pytest --benchmark-json output.json benches/
# Download previous benchmark result from cache (if exists)
- name: Download previous benchmark data
Expand Down
Loading