Reproduction Runbook
1. Build Optimized Binary (-O2 --pedantic)
Section titled “1. Build Optimized Binary (-O2 --pedantic)”git clone https://github.com/symtrace/canontra.gitcd canontrastack install --local-bin-path dist-bin --ghc-options="-O2" --pedantic./dist-bin/canontra versionOn Windows PowerShell:
stack install --local-bin-path dist-bin --ghc-options="-O2" --pedantic.\dist-bin\canontra.exe versionExpected output: canontra version 0.4.0.
2. Run Strict NFData Microbenchmarks (RQ1 to RQ19, 159 Benchmarks)
Section titled “2. Run Strict NFData Microbenchmarks (RQ1 to RQ19, 159 Benchmarks)”stack bench --benchmark-arguments="--csv researchBenchmarks/v0.4.0_microbench_results.csv"3. Run the 15-Repository Corpus Evaluation (v0.4.0)
Section titled “3. Run the 15-Repository Corpus Evaluation (v0.4.0)”researchBenchmarks/run_v0.4.0_benchmarks.ps1 clones all 15 open-source repositories (bottle, toml, requests, flask, marshmallow, chalk, click, gin, jinja, ripgrep, express, rich, hugo, deno_core, prometheus) into an isolated scratch folder and captures cold, warm (CNTR\x07), canontra impact, and canontra snap mark --skip-noop timings using .NET ProcessStartInfo and [System.Diagnostics.Stopwatch]:
./researchBenchmarks/run_v0.4.0_benchmarks.ps1Outputs are written to:
researchBenchmarks/v0.4.0_benchmark_summary.csvresearchBenchmarks/v0.4.0_benchmark_comparative_summary.csvresearchBenchmarks/v0.4.0_microbench_results.csv
4. Synchronize Documentation Tables
Section titled “4. Synchronize Documentation Tables”Regenerate src/data/benchmarks.generated.ts from the CSV artifacts and run full type and link checks:
npm run syncnpm run build