Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions .claude/commands/pr-submit.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
Create a PR for the existing branch.

Keep the PR title and body concise. Use the following title prefixes:

- `fix:` for production code bug fixes
- `perf:` for production code performance improvements
- `feat:` for new features
- `docs:` for documentation improvements (including README.md and CLAUDE.md)
- `ci:` for CI improvements

based on what best describes the changes.

Avoid extraneous emphasis and emojis in the PR body. It should be factual and neutral.

Consider at least:

- Background (if any)
- If fixing bugs, reproduction steps
- Changes to the UX surface area
- Testing approach
- Acknowledged but intentionally ignored issues
49 changes: 49 additions & 0 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Benchmarks

on:
workflow_dispatch:
pull_request:
branches: [main]
paths:
- 'src/rules/**'
- 'benches/**'
- '.github/workflows/benchmark.yml'

env:
CARGO_TERM_COLOR: always
RUST_BACKTRACE: 1

jobs:
benchmark:
runs-on: ubuntu-latest-8-cores

steps:
- uses: actions/checkout@v4

- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable

- name: Setup Rust cache
uses: Swatinem/rust-cache@v2
with:
shared-key: ${{ runner.os }}
# Share cache with other Linux workflows
cache-on-failure: true
# Cache benchmark-specific dependencies
cache-targets: true
cache-all-crates: true

- name: Build benchmarks first (populates cache)
run: cargo build --release --bench rule_engines

- name: Run benchmarks
run: cargo bench --bench rule_engines

- name: Upload benchmark results
uses: actions/upload-artifact@v4
with:
name: benchmark-results
path: target/criterion/
retention-days: 30
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ CLAUDE.local.md
artifacts/
book
test-build
mermaid*.js
mermaid*.js
*.pb.gz
Loading