Skip to content

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 by 59,328 LOC/s (click) and 54,996 LOC/s (marshmallow).
  • Largest Speedups: rich cold improved 12.43× (16,129.89 ms to 1,297.27 ms; warm 1,301.98 ms because 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 ms to 3,786.11 ms).
  • Warm canontra snap mark --skip-noop: 143.61 ms (chalk) to 477.16 ms (ripgrep), 1,352.99 ms (deno_core), 3,978.55 ms (prometheus), and 5,022.56 ms (hugo).
  • Reliability: Exit code 0 across all 15 cold, warm, CIA 2.0, and snap runs with non-null F_R, F_WCG, and F_WDF digests.
RepositoryLanguageFilesIndexedLOCCold (ms)vs v0.3Warm (ms)vs v0.3CIA 2.0 (ms)snap mark (ms)LOC/sF_R / F_WCG / F_WDFExit
bottlePython30169,228339.503.03×290.753.52×462.49325.5627,181066eea6c... / d0a9f78b... / 3960c7c4...0
tomlRust16616649,6982,291.042.64×1,186.624.25×2,375.241,288.9121,692f6319c62... / 5445b3e3... / 8dff8088...0
requestsPython372112,032335.083.02×276.053.66×453.52290.1935,9084f6ca7d7... / f87e69b2... / 7a3f9935...0
flaskPython834318,345607.213.34×435.564.63×761.26440.5230,21291de3959... / 8ec8440f... / 9af98251...0
marshmallowPython381715,704285.553.54×245.704.19×508.29301.5554,996d004bdec... / fc571f2c... / 781892b2...0
chalkJavaScript20142,215135.647.56×103.509.81×287.29143.6116,33034785a97... / dd544702... / 96c58d9d...0
clickPython905429,121490.854.12×362.075.57×765.02408.7959,328ecccb6e8... / 0e4f5e07... / 5c53bbe9...0
ginGo999924,226763.452.65×243.888.28×943.15356.7831,73235cbeb98... / d5daf51d... / 61d355d7...0
jinjaPython602522,875336.253.01×300.643.38×619.61350.9768,0304a5080b6... / 5db1aaea... / d544cbe3...0
ripgrepRust11011056,3861,216.223.32×388.1110.40×1,632.35477.1646,3624cf1916d... / 049b8842... / 33dc85a7...0
expressJavaScript14114121,4921,201.913.37×520.513.90×792.88571.6617,882d15eb48a... / 22f20ad6... / 4c2972c3...0
richPython21314251,8661,297.2712.43×1,301.9812.39×4,790.271,215.3639,981d09ca131... / 35186942... / 65e74c80...0
hugoGo936937235,2249,054.143.45×3,672.677.68×9,106.945,022.5625,98057209ce8... / c1b74b39... / 7be96a1f...0
deno_coreTypeScript/Rust31531869,6922,799.021.80×1,113.874.53×3,144.591,352.9924,899bad5e9ce... / ecc8b549... / 0298785d...0
prometheusGo844994408,41712,027.974.78×3,786.1115.18×11,577.513,978.5533,9569571da7d... / 2c30a945... / f00cbbf7...0
Total / Corpus5 Langs3,1823,0971,026,52133,181.104.07×14,228.029.07×---15 / 15 non-null0

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 us902.7 us
decodeSlabV7Binary (10 modules)216.7 us205.7 us
lookupSlabV7BinaryBS (Warm Hit)6.0 us3.4 us
buildWholeRepoCallGraphFromSummaries (10 mods)112.9 us34.6 us
buildWholeRepoDataFlowFromSummaries (10 mods)65.6 us20.7 us
Operation (RQ19 Stateless AI Harness canontra snap)Mean± 2σ
diffFileBundles (9-tier bundle comparison)733.1 ns588.4 ns
computeFileDeltas (1,000 files, 1 dirty)1.73 ms1.21 ms
classifySnapDeltas (dirty delta triage)19.9 ns3.4 ns
parseGuardTiers (F2,F3,F_T)733.1 ns241.8 ns
matchesGlob (**/*.py)5.9 us7.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 us1.33 ms7.52 ms55.47 ms148.44 msO(N) token stream
2. AST Normalization & Serialization80.9 us378.4 us1.98 ms14.65 ms28.13 msO(N) AST nodes
3. Full 8-Tier Pipeline2.17 ms3.96 ms23.83 ms110.94 ms226.56 msO(N) linear
Frontend / Lexer BenchmarkGroupMean± 2σ
Python full pipeline (~100 LOC)RQ23.86 ms2.42 ms
TypeScript full pipeline (~100 LOC)RQ21.76 ms772.1 us
Go full pipeline (~100 LOC)RQ21.83 ms881.3 us
Rust full pipeline (~100 LOC)RQ21.40 ms986.6 us
FastPython ByteString SIMD lexer (~85 LOC)RQ7463.9 us438.7 us
JS/TS ByteString SIMD lexer (~85 LOC)RQ7137.3 us21.0 us
Go ByteString SIMD lexer (~85 LOC)RQ795.4 us61.7 us
Rust ByteString SIMD lexer (~85 LOC)RQ7132.8 us130.1 us

4. CSR Graphs, SIMD, α\alpha-Renaming & Algebraic Kernels (RQ13 to RQ17)

Section titled “4. CSR Graphs, SIMD, α\alphaα-Renaming & Algebraic Kernels (RQ13 to RQ17)”
Kernel (RQ13-RQ17, strict NFData)GroupMean± 2σ
csrHasEdge binary search (hit)RQ1321.0 ns3.4 ns
forwardReachabilityCone (100 nodes)RQ134.2 us1.5 us
tarjanSCC cycle collapseRQ1327.1 us27.4 us
condenseSCC canonical DAGRQ1357.2 us44.6 us
scanSourceSIMD 256-bit (XL)RQ15360.1 us55.6 us
parProcessWorkStealing (1,000 tasks, MV.IOVector)RQ151.14 ms386.1 us
canonicalizeAlphaProgram (Medium)RQ16518.8 us356.8 us
canonicalizeAlphaProgram (XL)RQ1611.33 ms2.65 ms
canonicalizeCFGRPO (XL)RQ1620.02 ms23.18 ms
normalizeAlgebraicProgram (Medium)RQ17903.3 us1.10 ms
normalizeAlgebraicProgram (XL)RQ179.38 ms4.84 ms
computeBatchImpactSliceCSR (PR batch)RQ17164.8 us130.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 INVARIANT in Canontra vs. 100.0% cache invalidation in Git, Turborepo, Bazel CAS, and sccache).
  • True-Detection Rate (TDR) on real logic and API edits: 100.0% (10 / 10 DETECTED across F1, F2, F4, and F_R).
#RepositoryCategoryMutationF1F2F4CanontraGit / Turbo / Bazel
1chalkNonFunctionalConvert LF to CRLF line endingsSAMESAMESAMEINVARIANTINVALIDATED
2bottleNonFunctionalRun black auto-formatter with trailing whitespaceSAMESAMESAMEINVARIANTINVALIDATED
3ginNonFunctionalInject 50 lines of inline and block commentsSAMESAMESAMEINVARIANTINVALIDATED
4tomlNonFunctionalModify module-level documentation commentsSAMESAMESAMEINVARIANTINVALIDATED
5requestsNonFunctionalInvert declaration order of pure helper functionsSAMESAMESAMEINVARIANTINVALIDATED
6expressNonFunctionalRun prettier format with adjusted tab widthSAMESAMESAMEINVARIANTINVALIDATED
7ripgrepNonFunctionalConvert CRLF to LF line endingsSAMESAMESAMEINVARIANTINVALIDATED
8flaskNonFunctionalInject header licence and attribution commentsSAMESAMESAMEINVARIANTINVALIDATED
9hugoNonFunctionalAdd trailing spaces to empty linesSAMESAMESAMEINVARIANTINVALIDATED
10deno_coreNonFunctionalInject block comments into type declarationsSAMESAMESAMEINVARIANTINVALIDATED
11chalkSemanticMutate binary operator (+ to -) in utility calcDIFFSAMEDIFFDETECTEDINVALIDATED
12bottleSemanticMutate numeric return constant (x + 1 to x + 2)DIFFSAMEDIFFDETECTEDINVALIDATED
13ginSemanticNegate if condition (x > 0 to x <= 0)DIFFSAMEDIFFDETECTEDINVALIDATED
14tomlSemanticAdd optional parameter to exported function signatureDIFFDIFFDIFFDETECTEDINVALIDATED
15requestsSemanticAdd timeout default parameter to request functionDIFFDIFFDIFFDETECTEDINVALIDATED
16expressSemanticInvert while loop condition and exit predicateDIFFSAMEDIFFDETECTEDINVALIDATED
17ripgrepSemanticChange default exit code return valueDIFFSAMEDIFFDETECTEDINVALIDATED
18flaskSemanticSwap logical AND with logical OR in route dispatcherDIFFSAMEDIFFDETECTEDINVALIDATED
19richSemanticMutate default width constant from 80 to 120DIFFSAMEDIFFDETECTEDINVALIDATED
20prometheusSemanticAdd public field to exported Label structDIFFDIFFDIFFDETECTEDINVALIDATED