Skip to content

Decref the reference to the type held by an instance when deallocating an instance of an extension type #9325

Decref the reference to the type held by an instance when deallocating an instance of an extension type

Decref the reference to the type held by an instance when deallocating an instance of an extension type #9325

Workflow file for this run

name: benches
on:
push:
branches:
- "main"
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref_name }}-${{ github.event.pull_request.number || github.sha }}-benches
cancel-in-progress: true
env:
UV_PYTHON: "3.14t"
jobs:
benchmarks:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v7.0.1
- uses: astral-sh/setup-uv@v7
with:
save-cache: ${{ github.ref == 'refs/heads/main' || contains(github.event.pull_request.labels.*.name, 'CI-save-pr-cache') }}
# Using this action is still necessary for CodSpeed to build flamegraphs correctly,
# see note about setup-python in https://codspeed.io/docs/benchmarks/python#recipes
- uses: actions/setup-python@v7
with:
python-version: ${{ env.UV_PYTHON }}
- uses: dtolnay/rust-toolchain@stable
with:
components: rust-src
- uses: Swatinem/rust-cache@v2
with:
workspaces: |
.
pyo3-benches
save-if: ${{ github.ref == 'refs/heads/main' || contains(github.event.pull_request.labels.*.name, 'CI-save-pr-cache') }}
cache-all-crates: "true"
cache-workspace-crates: "true"
- uses: taiki-e/install-action@v2
with:
tool: cargo-codspeed
- name: Run the benchmarks
uses: CodSpeedHQ/action@v4
with:
run: uvx nox -s codspeed
token: ${{ secrets.CODSPEED_TOKEN }}
mode: simulation