Repository navigation
perf(bench): add FTS trigger amplification benchmark (#1606 phase 1) - #1698
Conversation
Ref #1658, ref #1606 Co-Authored-By: Claude Opus 4.7 <[email protected]>
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThis PR adds a new benchmark module to measure and assert SQLite FTS trigger amplification behavior for ChangesFTS Trigger Amplification Benchmarks
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related issues
Poem
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
Add two benchmark tests measuring content_blocks FTS trigger cost:
test_content_blocks_fts_trigger_growth_is_subquadratic— incremental inserts (simulates live streaming O(N²) pattern)test_content_blocks_batch_insert_is_linear— batch insert baseline (simulates bulk catch-up linear scaling)Both measure wall time for 20/50/100/200 block insertions and assert growth curves.
Ref #1658, ref #1606
Verification
nix develop -c pytest tests/benchmarks/test_fts_trigger_amplification.py -v→ 2 passednix develop -c devtools verify --quick→ exit_code 0🤖 Generated with Claude Code
Summary by CodeRabbit