@@ -59,9 +59,32 @@ FileDiscovery → Parsers → Detectors → GraphBuilder (buffered) → Linkers
5959
6060## Testing
6161
62- - ` pytest tests/ -x -q ` — must always pass (currently 361 tests)
62+ - ` pytest tests/ -x -q ` — must always pass (currently 565 tests)
6363- Every detector needs: positive match test, negative match test, determinism test
64- - Benchmark on spring-boot (10K files) for performance regression checks
64+ - All detectors use shared ` detectors/utils.py ` — decode_text, find_line_number, etc.
65+
66+ ## Benchmark Requirements
67+
68+ ** After every change** , run a clean benchmark on a small project to verify:
69+ 1 . No performance regression (time should not increase significantly)
70+ 2 . 100% determinism (2 runs produce identical node/edge counts)
71+ 3 . Coverage doesn't decrease (file/node/edge counts should not drop)
72+
73+ ** Benchmark procedure:**
74+ ``` bash
75+ rm -rf ~ /projects/testDir/contoso-real-estate/.code-intelligence/
76+ find ~ /projects/testDir/contoso-real-estate -name " .code_intelligence_cache*" -delete
77+ # Run twice
78+ time code-intelligence analyze ~ /projects/testDir/contoso-real-estate --full -j 8
79+ time code-intelligence analyze ~ /projects/testDir/contoso-real-estate --full -j 8
80+ ```
81+
82+ If ` testDir/contoso-real-estate ` is not available, clone an official secure project:
83+ ``` bash
84+ git clone --depth 1 https://github.com/Azure-Samples/contoso-real-estate.git ~ /projects/testDir/contoso-real-estate
85+ ```
86+
87+ ** Baseline (contoso-real-estate, 488 files):** 2,313 nodes, 2,905 edges, ~ 3.7s
6588- Cross-backend parity test on contoso-real-estate for data quality
6689
6790## Key Files
0 commit comments