Skip to content

Commit

Permalink
Run benchmarks on CI
Browse files Browse the repository at this point in the history
These values are only for reference, and shouldn't be taken too
seriously. If at any time there is some serious performance regression
we should be able to see it though.

Signed-off-by: Rodrigo Tobar <rtobar@icrar.org>
  • Loading branch information
rtobar committed Aug 23, 2024
1 parent 42d0d70 commit 916fe01
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Run benchmarking tool

# Build on every branch push, tag push, and pull request change:
on:
push:
pull_request:

jobs:
run_benchmark:
name: Benchmark os=${{ matrix.os }}/sw_mode=${{ matrix.sw_mode}}
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: Install crc32c
run: python setup.py develop

- name: Benchmark with 1 [GB] 10 times
env:
CRC32C_SW_MODE: ${{ matrix.sw_mode }}
run: python -m crc32c.benchmark -i 10 -s 1073741824

0 comments on commit 916fe01

Please sign in to comment.