atomwrite 0.1.1

Atomic file operations CLI for LLM agents — read, write, edit, search, replace with NDJSON output
Documentation
name: Benchmarks

on:
  push:
    branches: [main]
  pull_request:
    types: [labeled]

jobs:
  bench:
    if: github.event_name == 'push' || contains(github.event.pull_request.labels.*.name, 'perf')
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4

      - uses: dtolnay/rust-toolchain@stable

      - uses: actions/cache@v4
        with:
          path: |
            ~/.cargo/registry
            ~/.cargo/git
            target
          key: ${{ runner.os }}-bench-${{ hashFiles('**/Cargo.lock') }}

      - name: Run benchmarks
        run: cargo bench --bench hash_benchmark --bench read_benchmark -- --save-baseline current

      - name: Upload baseline
        if: github.event_name == 'push'
        uses: actions/upload-artifact@v4
        with:
          name: bench-baseline
          path: target/criterion
          retention-days: 30