Skip to content

Release 3.11.2

Release 3.11.2 #213

Workflow file for this run

name: Benchmark
on: [ push ]
jobs:
benchmark:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ "3.12" ]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Install dependencies
run: |
pip install --upgrade pip
pip install -r requirements.test.txt
- name: Run benchmarks
run: |
pytest --benchmark-only --benchmark-json=benchmarks.json
- name: Print summary
run: |
echo "### Benchmark Results" >> $GITHUB_STEP_SUMMARY
echo "
Benchmark|Min (uS)|Median (uS)|Mean (uS)|Max (uS)|Iterations
---|---|---|---|---|---
$(jq -r '.benchmarks[] | [.name,(.stats.min*1000000000 | round / 1000),(.stats.median*1000000000 | round / 1000),(.stats.mean*1000000000 | round / 1000),(.stats.max*1000000000 | round / 1000),.stats.rounds] | join("|")' benchmarks.json)
" >> $GITHUB_STEP_SUMMARY