sqlitegis 0.1.3

SQLiteGIS: PostGIS-style spatial functions for SQLite in pure Rust.
Documentation
name: Performance

on:
  push:
    branches: [main]
  schedule:
    - cron: "0 4 * * 1-5"
  workflow_dispatch:

permissions:
  contents: read

concurrency:
  group: ${{ github.workflow }}-${{ github.ref }}
  cancel-in-progress: true

env:
  CARGO_TERM_COLOR: always

jobs:
  sqlite-perf:
    name: SQLite Performance Assertions
    runs-on: ubuntu-latest
    timeout-minutes: 40
    env:
      RUST_TEST_THREADS: 1
    steps:
      - uses: actions/checkout@v5
      - uses: dtolnay/rust-toolchain@stable
      - uses: Swatinem/rust-cache@v2

      - name: sqlite intersects window perf
        run: cargo test -p sqlitegis --features sqlite spatial_index_accelerates_intersects_window -- --ignored --exact --nocapture --test-threads=1

      - name: sqlite knn perf
        run: cargo test -p sqlitegis --features sqlite spatial_index_accelerates_knn -- --ignored --exact --nocapture --test-threads=1

      - name: sqlite mixed vs partitioned perf
        run: cargo test -p sqlitegis --features sqlite type_partitioned_vs_mixed_index -- --ignored --exact --nocapture --test-threads=1

      - name: diesel intersects window perf
        run: cargo test -p sqlitegis --features diesel-sqlite indexed_intersects_window_is_faster -- --ignored --exact --nocapture --test-threads=1

      - name: diesel knn perf
        run: cargo test -p sqlitegis --features diesel-sqlite indexed_knn_is_faster -- --ignored --exact --nocapture --test-threads=1

      - name: diesel criterion benches
        run: cargo bench -p sqlitegis --features diesel-sqlite --benches