Skip to content

Benchmark

Benchmark #19

Workflow file for this run

name: Benchmark
on: workflow_dispatch
jobs:
posix:
strategy:
matrix:
os: [ubuntu-latest, buildjet-2vcpu-ubuntu-2204-arm, macos-13, macos-14]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
cache: pip
- run: pip3 install pyyaml
- run: python3 test.py --bench
- uses: actions/upload-artifact@v4
with:
name: posix-${{ matrix.os }}
path: benchmark-results.json
linux-i386:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- run: |
sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install g++-i686-linux-gnu
- uses: actions/setup-python@v5
with:
cache: pip
- run: pip3 install pyyaml
- run: python3 test.py --cross i386 --bench
- uses: actions/upload-artifact@v4
with:
name: linux-i386
path: benchmark-results.json
windows-mingw:
runs-on: windows-latest
defaults:
run:
shell: msys2 {0}
steps:
- uses: actions/checkout@v4
- uses: msys2/setup-msys2@v2
with:
update: true
install: >-
mingw-w64-x86_64-gcc
mingw-w64-x86_64-python
mingw-w64-x86_64-python-yaml
mingw-w64-x86_64-python-pywin32
- run: python3 test.py --bench
- uses: actions/upload-artifact@v4
with:
name: windows-mingw
path: benchmark-results.json
windows-mingw-i386:
runs-on: windows-latest
defaults:
run:
shell: msys2 {0}
steps:
- uses: actions/checkout@v4
- uses: msys2/setup-msys2@v2
with:
update: true
msystem: mingw32
install: >-
mingw-w64-i686-gcc
mingw-w64-i686-python
mingw-w64-i686-python-yaml
mingw-w64-i686-python-pywin32
- run: python3 test.py --cross-windows i386 --bench
- uses: actions/upload-artifact@v4
with:
name: windows-mingw-i386
path: benchmark-results.json
windows-msvc:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: msys2/setup-msys2@v2
with:
update: true
msystem: ucrt64
install: mingw-w64-ucrt-x86_64-gcc
- uses: ilammy/msvc-dev-cmd@v1
- uses: actions/setup-python@v5
with:
cache: pip
- run: pip3 install pyyaml pywin32
- run: python3 test.py --msvc x86_64 --bench
- uses: actions/upload-artifact@v4
with:
name: windows-msvc
path: benchmark-results.json
windows-msvc-i386:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: msys2/setup-msys2@v2
with:
update: true
msystem: ucrt64
install: mingw-w64-ucrt-x86_64-gcc
- uses: ilammy/msvc-dev-cmd@v1
with:
arch: x86
- uses: actions/setup-python@v5
with:
cache: pip
- run: pip3 install pyyaml pywin32
- run: python3 test.py --msvc i386 --bench
- uses: actions/upload-artifact@v4
with:
name: windows-msvc-i386
path: benchmark-results.json