Skip to content

feat: add equality and hash methods for Table and Transaction (#16) #51

feat: add equality and hash methods for Table and Transaction (#16)

feat: add equality and hash methods for Table and Transaction (#16) #51

Workflow file for this run

---
name: Benchmark
on:
pull_request:
branches: [main]
paths:
- ".github/workflows/benchmark.yml"
- "pyproject.toml"
- "src/**"
- "tests/benchmarks/**"
- "uv.lock"
push:
branches: [main]
paths:
- ".github/workflows/benchmark.yml"
- "pyproject.toml"
- "src/**"
- "tests/benchmarks/**"
- "uv.lock"
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
benchmark:
name: "Benchmark (${{ matrix.shard }})"
runs-on: ubuntu-latest
timeout-minutes: 5
permissions:
contents: read
id-token: write
strategy:
fail-fast: false
matrix:
include:
# CI tests only (not slow) for fast PR feedback
# Slow tests excluded - they take ~24s each vs ~7s for CI tests
- shard: "load-reload"
filter: "TestBenchLoad or TestBenchReload"
marker: "benchmark and not slow"
- shard: "get"
filter: "TestBenchGet"
marker: "benchmark and not slow"
- shard: "find"
filter: "TestBenchFind and not TestBenchFindOne"
marker: "benchmark and not slow"
- shard: "find-one-delete"
filter: "TestBenchFindOne or TestBenchDelete"
- shard: "write-compact"
filter: "TestBenchPut or TestBenchBatchWrite or TestBenchCompact"
- shard: "all-keys-items"
filter: "TestBenchAll or TestBenchKeys or TestBenchItems"
marker: "benchmark and not slow"
- shard: "count-has"
filter: "TestBenchCount or TestBenchHas"
marker: "benchmark and not slow"
steps:
- name: Checkout code
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
- name: Install uv
uses: astral-sh/setup-uv@ed21f2f24f8dd64503750218de024bcf64c7250a # v7.1.5
with:
python-version: "3.10"
enable-cache: true
- name: Run benchmarks
uses: CodSpeedHQ/action@346a2d8a8d9d38909abd0bc3d23f773110f076ad # v4.4.1
with:
mode: simulation
run: uv run pytest -m "${{ matrix.marker || 'benchmark' }}" -k "${{ matrix.filter }}" --codspeed