Skip to content

Methodology

Every Canontra v0.4.0.0 timing comes from live -O2 process runs with .canontra/ cleared before cold runs and deleted after evaluation. Zero simulated baselines and zero self-referential (dogfooding) numbers are used.

Component Version / Specification
Host OS Windows 11 (NTFS filesystem)
Architecture & Runtime Multi-core x86_64, GHC 9.6.6 (-O2, SMP work-stealing scheduler +RTS -N)
Canontra v0.4.0.0 (dist-bin/canontra.exe)
GitHub CodeQL v2.27.0 CLI (native Python, JS/TS, Go, Rust extractors)
Git v2.48.1 (git hash-object per-file execution)
Turborepo v2.11.2 (turbo CLI)
Mozilla sccache v0.8.2 (sccache.exe)
Compilers on Testbed Go 1.23.1, Rustc / Cargo 1.83+
Evaluation Date December 1, 2026
  1. Sub-Millisecond CLI Timing (researchBenchmarks/run_v0.4.0_benchmarks.ps1): Replaces PowerShell Start-Process -Wait (which added a ~1,000 ms polling floor in v0.3.0) with direct .NET System.Diagnostics.Process (ProcessStartInfo + async stream capture) timed using [System.Diagnostics.Stopwatch].
  2. Strict NFData (nf) Microbenchmarking (bench/Bench.hs): Forces full data-structure evaluation across all 159 microbenchmarks (RQ1 to RQ19) so lazy thunks cannot hide real CPU work.
  • Micro: ~25 LOC (2 functions) | Small: ~85 LOC (10 functions) | Medium: ~405 LOC (50 functions) | Large: ~1,605 LOC (200 functions) | XL: ~4,005 LOC (500 functions).
  • RQ18: SlabV7 (CNTR\x07) binary encode, decode, lookup, and summary-backed buildWholeRepoCallGraphFromSummaries / buildWholeRepoDataFlowFromSummaries (10 modules).
  • RQ19: canontra snap harness kernels (diffFileBundles, computeFileDeltas across 1,000 files, classifySnapDeltas, parseGuardTiers, matchesGlob).

The macro benchmark evaluates 15 open-source repositories across Python, JavaScript, TypeScript, Go, and Rust:

bottle, toml, requests, flask, marshmallow, chalk, click, gin, jinja, ripgrep, express, rich, hugo, deno_core, and prometheus (3,182 source files, 3,097 indexed, 1,026,521 total LOC counted via .NET [System.IO.File]::ReadAllLines().Length).