Skip to content

Reproduction Runbook

1. Build Optimized Binary (-O2 --pedantic)

Section titled “1. Build Optimized Binary (-O2 --pedantic)”
Terminal window
git clone https://github.com/symtrace/canontra.git
cd canontra
stack install --local-bin-path dist-bin --ghc-options="-O2" --pedantic
./dist-bin/canontra version

On Windows PowerShell:

Terminal window
stack install --local-bin-path dist-bin --ghc-options="-O2" --pedantic
.\dist-bin\canontra.exe version

Expected 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)”
Terminal window
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]:

Terminal window
./researchBenchmarks/run_v0.4.0_benchmarks.ps1

Outputs are written to:

  • researchBenchmarks/v0.4.0_benchmark_summary.csv
  • researchBenchmarks/v0.4.0_benchmark_comparative_summary.csv
  • researchBenchmarks/v0.4.0_microbench_results.csv

Regenerate src/data/benchmarks.generated.ts from the CSV artifacts and run full type and link checks:

Terminal window
npm run sync
npm run build