-
Notifications
You must be signed in to change notification settings - Fork 1
Benchmarks‐And‐Validation
karurikwao edited this page Jul 5, 2026
·
1 revision
ContextClean benchmark claims should be tied to fixtures and measured token counts.
powershell -ExecutionPolicy Bypass -File .\scripts\benchmarks.ps1Outputs:
benchmarks/fixtures/benchmarks/results.jsonbenchmarks/results.md
Benchmarks cover:
- HTML scrape
- CI failure log
- provider CI mix
- stack trace dump
- dirty HTML article
Each fixture should have must-keep and must-remove expectations where practical.
For a benchmark claim to be useful, validate:
- input token count
- output token count
- tokens saved
- reduction percent
- important content preserved
- noise removed
- warnings reasonable
- truncation behavior when budgets are applied
Developer gate:
cargo fmt --all -- --check
cargo clippy --workspace --all-targets --all-features -- -D warnings
cargo test --workspace --all-features --locked
cargo build --workspace --release --lockedWindows helper:
.\scripts\check.ps1CI should cover:
- format
- clippy
- MSRV
- build on Linux, macOS, and Windows
- test on Linux, macOS, and Windows
Dependency updates should not merge if they break MSRV or the supported platform matrix.