15-Repo Empirical Results
Tables on this page are generated directly from v0.4.0_benchmark_summary.csv, v0.4.0_microbench_results.csv, and mutation_eval_results.csv via npm run sync (canontra 0.4.0.0, evaluated 2026-12-01, 159 microbenchmarks).
1. 15-Repository Cold, Warm, CIA 2.0 & snap mark Summary
Section titled “1. 15-Repository Cold, Warm, CIA 2.0 & snap mark Summary”Across 15 repositories (3,182 source files, 3,097 indexed, 1,026,521 LOC), total cold time dropped to 33,181.10 ms (4.07× faster than v0.3.0) and total warm time dropped to 14,228.02 ms (9.07× faster than v0.3.0).
- Peak Cold Throughput: 68,030 LOC/s (
jinja), followed by59,328 LOC/s(click) and54,996 LOC/s(marshmallow). - Largest Speedups:
richcold improved 12.43× (16,129.89 msto1,297.27 ms; warm1,301.98 msbecause 71 unindexed test/fixture/doc files with parse warnings are re-checked on traversal);prometheus(994 files, 408k LOC) warm improved 15.18× (57,478.64 msto3,786.11 ms). - Warm
canontra snap mark --skip-noop:143.61 ms(chalk) to477.16 ms(ripgrep),1,352.99 ms(deno_core),3,978.55 ms(prometheus), and5,022.56 ms(hugo). - Reliability: Exit code
0across all 15 cold, warm, CIA 2.0, andsnapruns with non-nullF_R,F_WCG, andF_WDFdigests.
| Repository | Language | Files | Indexed | LOC | Cold (ms) | vs v0.3 | Warm (ms) | vs v0.3 | CIA 2.0 (ms) | snap mark (ms) | LOC/s | F_R / F_WCG / F_WDF | Exit |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| bottle | Python | 30 | 16 | 9,228 | 339.50 | 3.03× | 290.75 | 3.52× | 462.49 | 325.56 | 27,181 | 066eea6c... / d0a9f78b... / 3960c7c4... | 0 |
| toml | Rust | 166 | 166 | 49,698 | 2,291.04 | 2.64× | 1,186.62 | 4.25× | 2,375.24 | 1,288.91 | 21,692 | f6319c62... / 5445b3e3... / 8dff8088... | 0 |
| requests | Python | 37 | 21 | 12,032 | 335.08 | 3.02× | 276.05 | 3.66× | 453.52 | 290.19 | 35,908 | 4f6ca7d7... / f87e69b2... / 7a3f9935... | 0 |
| flask | Python | 83 | 43 | 18,345 | 607.21 | 3.34× | 435.56 | 4.63× | 761.26 | 440.52 | 30,212 | 91de3959... / 8ec8440f... / 9af98251... | 0 |
| marshmallow | Python | 38 | 17 | 15,704 | 285.55 | 3.54× | 245.70 | 4.19× | 508.29 | 301.55 | 54,996 | d004bdec... / fc571f2c... / 781892b2... | 0 |
| chalk | JavaScript | 20 | 14 | 2,215 | 135.64 | 7.56× | 103.50 | 9.81× | 287.29 | 143.61 | 16,330 | 34785a97... / dd544702... / 96c58d9d... | 0 |
| click | Python | 90 | 54 | 29,121 | 490.85 | 4.12× | 362.07 | 5.57× | 765.02 | 408.79 | 59,328 | ecccb6e8... / 0e4f5e07... / 5c53bbe9... | 0 |
| gin | Go | 99 | 99 | 24,226 | 763.45 | 2.65× | 243.88 | 8.28× | 943.15 | 356.78 | 31,732 | 35cbeb98... / d5daf51d... / 61d355d7... | 0 |
| jinja | Python | 60 | 25 | 22,875 | 336.25 | 3.01× | 300.64 | 3.38× | 619.61 | 350.97 | 68,030 | 4a5080b6... / 5db1aaea... / d544cbe3... | 0 |
| ripgrep | Rust | 110 | 110 | 56,386 | 1,216.22 | 3.32× | 388.11 | 10.40× | 1,632.35 | 477.16 | 46,362 | 4cf1916d... / 049b8842... / 33dc85a7... | 0 |
| express | JavaScript | 141 | 141 | 21,492 | 1,201.91 | 3.37× | 520.51 | 3.90× | 792.88 | 571.66 | 17,882 | d15eb48a... / 22f20ad6... / 4c2972c3... | 0 |
| rich | Python | 213 | 142 | 51,866 | 1,297.27 | 12.43× | 1,301.98 | 12.39× | 4,790.27 | 1,215.36 | 39,981 | d09ca131... / 35186942... / 65e74c80... | 0 |
| hugo | Go | 936 | 937 | 235,224 | 9,054.14 | 3.45× | 3,672.67 | 7.68× | 9,106.94 | 5,022.56 | 25,980 | 57209ce8... / c1b74b39... / 7be96a1f... | 0 |
| deno_core | TypeScript/Rust | 315 | 318 | 69,692 | 2,799.02 | 1.80× | 1,113.87 | 4.53× | 3,144.59 | 1,352.99 | 24,899 | bad5e9ce... / ecc8b549... / 0298785d... | 0 |
| prometheus | Go | 844 | 994 | 408,417 | 12,027.97 | 4.78× | 3,786.11 | 15.18× | 11,577.51 | 3,978.55 | 33,956 | 9571da7d... / 2c30a945... / f00cbbf7... | 0 |
| Total / Corpus | 5 Langs | 3,182 | 3,097 | 1,026,521 | 33,181.10 | 4.07× | 14,228.02 | 9.07× | - | - | - | 15 / 15 non-null | 0 |
2. RQ18 (CNTR\x07 SlabV7 & Summary Synthesis) & RQ19 (canontra snap)
Section titled “2. RQ18 (CNTR\x07 SlabV7 & Summary Synthesis) & RQ19 (canontra snap)”Storing FileGraphSummary records inside SlabV7 lets Canontra rebuild whole-repo graphs in 112.9 us (call graph) and 65.6 us (data flow) across 10 modules without re-parsing unchanged files.
| Operation (RQ18 SlabV7 & Summary Synthesis, 10 modules) | Mean | ± 2σ |
|---|---|---|
encodeSlabV7Binary (10 modules) | 671.4 us | 902.7 us |
decodeSlabV7Binary (10 modules) | 216.7 us | 205.7 us |
lookupSlabV7BinaryBS (Warm Hit) | 6.0 us | 3.4 us |
buildWholeRepoCallGraphFromSummaries (10 mods) | 112.9 us | 34.6 us |
buildWholeRepoDataFlowFromSummaries (10 mods) | 65.6 us | 20.7 us |
| Operation (RQ19 Stateless AI Harness canontra snap) | Mean | ± 2σ |
|---|---|---|
diffFileBundles (9-tier bundle comparison) | 733.1 ns | 588.4 ns |
computeFileDeltas (1,000 files, 1 dirty) | 1.73 ms | 1.21 ms |
classifySnapDeltas (dirty delta triage) | 19.9 ns | 3.4 ns |
parseGuardTiers (F2,F3,F_T) | 733.1 ns | 241.8 ns |
matchesGlob (**/*.py) | 5.9 us | 7.9 us |
3. Pipeline Stage & Polyglot Frontend Microbenchmarks (RQ1, RQ2, RQ7)
Section titled “3. Pipeline Stage & Polyglot Frontend Microbenchmarks (RQ1, RQ2, RQ7)”Measured with strict NFData (nf) evaluation under tasty-bench (GHC 9.6.6 -O2):
| Pipeline Stage (RQ1, strict NFData) | Micro (~25) | Small (~85) | Medium (~405) | Large (~1,605) | XL (~4,005) | Complexity |
|---|---|---|---|---|---|---|
| 1. AST Parsing (Direct-to-IR) | 274.7 us | 1.33 ms | 7.52 ms | 55.47 ms | 148.44 ms | O(N) token stream |
| 2. AST Normalization & Serialization | 80.9 us | 378.4 us | 1.98 ms | 14.65 ms | 28.13 ms | O(N) AST nodes |
| 3. Full 8-Tier Pipeline | 2.17 ms | 3.96 ms | 23.83 ms | 110.94 ms | 226.56 ms | O(N) linear |
| Frontend / Lexer Benchmark | Group | Mean | ± 2σ |
|---|---|---|---|
| Python full pipeline (~100 LOC) | RQ2 | 3.86 ms | 2.42 ms |
| TypeScript full pipeline (~100 LOC) | RQ2 | 1.76 ms | 772.1 us |
| Go full pipeline (~100 LOC) | RQ2 | 1.83 ms | 881.3 us |
| Rust full pipeline (~100 LOC) | RQ2 | 1.40 ms | 986.6 us |
| FastPython ByteString SIMD lexer (~85 LOC) | RQ7 | 463.9 us | 438.7 us |
| JS/TS ByteString SIMD lexer (~85 LOC) | RQ7 | 137.3 us | 21.0 us |
| Go ByteString SIMD lexer (~85 LOC) | RQ7 | 95.4 us | 61.7 us |
| Rust ByteString SIMD lexer (~85 LOC) | RQ7 | 132.8 us | 130.1 us |
4. CSR Graphs, SIMD, -Renaming & Algebraic Kernels (RQ13 to RQ17)
Section titled “4. CSR Graphs, SIMD, α\alphaα-Renaming & Algebraic Kernels (RQ13 to RQ17)”| Kernel (RQ13-RQ17, strict NFData) | Group | Mean | ± 2σ |
|---|---|---|---|
csrHasEdge binary search (hit) | RQ13 | 21.0 ns | 3.4 ns |
forwardReachabilityCone (100 nodes) | RQ13 | 4.2 us | 1.5 us |
tarjanSCC cycle collapse | RQ13 | 27.1 us | 27.4 us |
condenseSCC canonical DAG | RQ13 | 57.2 us | 44.6 us |
scanSourceSIMD 256-bit (XL) | RQ15 | 360.1 us | 55.6 us |
parProcessWorkStealing (1,000 tasks, MV.IOVector) | RQ15 | 1.14 ms | 386.1 us |
canonicalizeAlphaProgram (Medium) | RQ16 | 518.8 us | 356.8 us |
canonicalizeAlphaProgram (XL) | RQ16 | 11.33 ms | 2.65 ms |
canonicalizeCFGRPO (XL) | RQ16 | 20.02 ms | 23.18 ms |
normalizeAlgebraicProgram (Medium) | RQ17 | 903.3 us | 1.10 ms |
normalizeAlgebraicProgram (XL) | RQ17 | 9.38 ms | 4.84 ms |
computeBatchImpactSliceCSR (PR batch) | RQ17 | 164.8 us | 130.1 us |
5. Mutation Accuracy Test (False Positives vs. Real Detection)
Section titled “5. Mutation Accuracy Test (False Positives vs. Real Detection)”Tested across 20 controlled edits (mutation_eval_results.csv):
- False-Discovery Rate (FDR) on cosmetic/non-functional edits: 0.0% (10 / 10
INVARIANTin Canontra vs. 100.0% cache invalidation in Git, Turborepo, Bazel CAS, andsccache). - True-Detection Rate (TDR) on real logic and API edits: 100.0% (10 / 10
DETECTEDacrossF1,F2,F4, andF_R).
| # | Repository | Category | Mutation | F1 | F2 | F4 | Canontra | Git / Turbo / Bazel |
|---|---|---|---|---|---|---|---|---|
| 1 | chalk | NonFunctional | Convert LF to CRLF line endings | SAME | SAME | SAME | INVARIANT | INVALIDATED |
| 2 | bottle | NonFunctional | Run black auto-formatter with trailing whitespace | SAME | SAME | SAME | INVARIANT | INVALIDATED |
| 3 | gin | NonFunctional | Inject 50 lines of inline and block comments | SAME | SAME | SAME | INVARIANT | INVALIDATED |
| 4 | toml | NonFunctional | Modify module-level documentation comments | SAME | SAME | SAME | INVARIANT | INVALIDATED |
| 5 | requests | NonFunctional | Invert declaration order of pure helper functions | SAME | SAME | SAME | INVARIANT | INVALIDATED |
| 6 | express | NonFunctional | Run prettier format with adjusted tab width | SAME | SAME | SAME | INVARIANT | INVALIDATED |
| 7 | ripgrep | NonFunctional | Convert CRLF to LF line endings | SAME | SAME | SAME | INVARIANT | INVALIDATED |
| 8 | flask | NonFunctional | Inject header licence and attribution comments | SAME | SAME | SAME | INVARIANT | INVALIDATED |
| 9 | hugo | NonFunctional | Add trailing spaces to empty lines | SAME | SAME | SAME | INVARIANT | INVALIDATED |
| 10 | deno_core | NonFunctional | Inject block comments into type declarations | SAME | SAME | SAME | INVARIANT | INVALIDATED |
| 11 | chalk | Semantic | Mutate binary operator (+ to -) in utility calc | DIFF | SAME | DIFF | DETECTED | INVALIDATED |
| 12 | bottle | Semantic | Mutate numeric return constant (x + 1 to x + 2) | DIFF | SAME | DIFF | DETECTED | INVALIDATED |
| 13 | gin | Semantic | Negate if condition (x > 0 to x <= 0) | DIFF | SAME | DIFF | DETECTED | INVALIDATED |
| 14 | toml | Semantic | Add optional parameter to exported function signature | DIFF | DIFF | DIFF | DETECTED | INVALIDATED |
| 15 | requests | Semantic | Add timeout default parameter to request function | DIFF | DIFF | DIFF | DETECTED | INVALIDATED |
| 16 | express | Semantic | Invert while loop condition and exit predicate | DIFF | SAME | DIFF | DETECTED | INVALIDATED |
| 17 | ripgrep | Semantic | Change default exit code return value | DIFF | SAME | DIFF | DETECTED | INVALIDATED |
| 18 | flask | Semantic | Swap logical AND with logical OR in route dispatcher | DIFF | SAME | DIFF | DETECTED | INVALIDATED |
| 19 | rich | Semantic | Mutate default width constant from 80 to 120 | DIFF | SAME | DIFF | DETECTED | INVALIDATED |
| 20 | prometheus | Semantic | Add public field to exported Label struct | DIFF | DIFF | DIFF | DETECTED | INVALIDATED |