Run benchmarks on CI #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run benchmarking tool | |
# Build on every branch push, tag push, and pull request change: | |
on: | |
push: | |
pull_request: | |
jobs: | |
run_benchmark: | |
name: Run benchmark on ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-22.04, windows-2019, macos-12] | |
sw_mode: [force, auto] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
name: Install Python | |
with: | |
python-version: '3.7' | |
- name: Benchmark with 1 [GB] 10 times | |
env: | |
CRC32C_SW_MODE: ${{ matrix.sw_mode }} | |
run: python -mcrc32c.benchmark -i 10 -s 1000000 |