Skip to content

PERF: Optimize fetchone, fetchmany(1) and fetchval paths #368

PERF: Optimize fetchone, fetchmany(1) and fetchval paths

PERF: Optimize fetchone, fetchmany(1) and fetchval paths #368

name: PR Performance Report
# Same-repo PRs may exercise their formatter directly. Forks use trusted base code.
on:
pull_request:
branches: [main]
types: [opened, synchronize, reopened, ready_for_review]
pull_request_target:
branches: [main]
types: [opened, synchronize, reopened, ready_for_review]
permissions:
contents: read
pull-requests: write
concurrency:
group: profiler-report-${{ github.event.pull_request.number }}-${{ github.event_name }}
cancel-in-progress: true
jobs:
report:
if: >-
(github.event_name == 'pull_request' &&
github.event.pull_request.head.repo.full_name == github.repository) ||
(github.event_name == 'pull_request_target' &&
github.event.pull_request.head.repo.full_name != github.repository)
runs-on: ubuntu-latest
timeout-minutes: 230
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
with:
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.event.pull_request.base.sha }}
persist-credentials: false
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
with:
python-version: "3.13"
- name: Publish validated paired benchmark results
env:
GH_TOKEN: ${{ github.token }}
PR_NUMBER: ${{ github.event.pull_request.number }}
PR_HEAD: ${{ github.event.pull_request.head.sha }}
run: python .github/scripts/post_profiler_comment.py --pr "$PR_NUMBER" --head "$PR_HEAD"