captchaforge 0.2.19

Automatic CAPTCHA detection and multi-strategy solving for chromiumoxide-driven headless browsers (Cloudflare Turnstile, reCAPTCHA v2/v3, hCaptcha, image grids, audio, sliders).
Documentation
name: Benchmark

on:
  push:
    branches: [main]
  workflow_dispatch:

env:
  CARGO_TERM_COLOR: always

jobs:
  benchmark:
    name: Run Benchmarks
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: dtolnay/rust-toolchain@stable
      - uses: Swatinem/rust-cache@v2
      - name: Install Chrome
        run: |
          sudo apt-get update
          sudo apt-get install -y google-chrome-stable
      - name: Download previous benchmark
        uses: actions/download-artifact@v4
        with:
          name: bench-results
          path: baseline/
        continue-on-error: true
      - name: Run detection benchmark
        run: |
          cd bench
          cargo run -- --suite detection --instances 1 --output bench-results
      - name: Compare to baseline
        if: hashFiles('baseline/bench-results-report.json') != ''
        run: |
          cd bench
          cargo run -- --suite regression --baseline ../baseline/bench-results-report.json --output regression-results
      - name: Upload benchmark results
        uses: actions/upload-artifact@v4
        with:
          name: bench-results
          path: bench/bench-results-report.json