Skip to content

feat(bench): repeat-and-report timing runs and the checker timing record - #69

Merged
EYH0602 merged 8 commits into
mainfrom
docs/checker-timing
Nov 10, 2026
Merged

EYH0602 merged 8 commits into
mainfrom
docs/checker-timing

Conversation

@EYH0602

@EYH0602 EYH0602 commented Nov 10, 2026 •

Copy link
Copy Markdown
Collaborator

Merge with a merge commit, not squash. The timing record is pinned to 018a2ae (task 1), which must stay reachable from main.

Commits

  • 19ab5d3 docs(bench): correct the per-check timing claim (single-digit µs → a few hundred µs)
  • 235e8ca, fae83db, 15c9d45 docs(bench): the timing-run plan (removed in f7abe5e once executed)
  • 018a2ae feat(bench): repeat timed runs with in-run load and verified cpu pinning (pinned measurement commit; Haskell CI run 42882314673 green)
    • bench_container.py: --runs N (one image build per batch), host load sampled during every timed run, --cpuset-cpus refused unless every CPU is in the VM's /sys/devices/system/cpu/isolated (list and /proc/cmdline recorded), record-only --demoted-pid and --batch-note; provenance lara-bench-provenance@2
    • bench_compare.py: every run of a batch listed with its in-run load; excludes only non-success runs; refuses changed outputs and mixed commits/images; lower-median table-run rule
    • tests in scripts/test_bench_container.py (36 pass locally)
  • f7abe5e docs(bench): record the 2026-11-10 checker timing batches — docs/checker-timing.md, protocol in docs/evaluation.md, index in docs/README.md

Results at 018a2ae (Apple M5 Pro, OrbStack 2.2.5)

Batch Runs Host load median Control row median Range across runs
Unpinned 10 2.83 201.6 µs 2.3%
Pinned to VM CPU 17 10 3.52 199.7 µs 1.2%
Unpinned + 4 host busy loops 5 5.28 213.2 µs 3.4%

Published table: pinned batch, run 20261110T192652Z-018a2ae1e630-r09 (rule fixed before the runs). End to end 437.6 µs, check + render 199.8 µs, Lean subprocess 1.1 ms. Host load moves the numbers (+5.8% under busy loops), so the record claims magnitude on a working desktop, not an idle machine.

Harness, docs and evaluation evidence only; no lara behavior, contract or Lean change, so no version bump. Closes #70. The paper's tables/performance.tex refresh is tracked in the paper repository.

Follow-up commits

  • 13267f8 docs(bench): list every timing run and stop attributing the spread to pinning (all 25 runs in the report; sequential batches confound pinning with time order)
  • 7afe654 docs(ara): capture the 2026-11-10 checker timing batches (evidence record, N425–N428, staged O221; ARA source-span, session-index and observation gates pass locally)

@EYH0602 EYH0602 changed the title docs(bench): correct the per-check timing claim docs(bench): correct the per-check timing claim and plan the timing run Nov 10, 2026
docs/evaluation.md and scripts/bench.hs said one check runs in single-digit microseconds. Measured per-check times are a few hundred: 185-230 us across the 60 corpus units in a bench-container smoke at 9c3f6fa, median 186 us single-shot from measure.hs on macOS, and median 344 us in the frozen v8 report.json.
Repeat-and-report protocol without the 0.5 load gate: in-run load sampling, all runs kept, predeclared exclusion and table choice, optional busy-loop bias probe, and the claim limits. Records why cores cannot be reserved on the macOS host and the taskpolicy -b brake. Tracks #70.
OrbStack 2.2.5 boots the Docker VM with isolcpus=17 and exposes the cgroup v2 cpuset controller, so --cpuset-cpus=17 isolates the bench from other guest work. It cannot isolate from host load, so the plan measures it as a separate batch with a predeclared rule for which batch supplies the table.
OrbStack's isolcpus=17 is a version-specific boot detail and Docker accepts --cpuset-cpus for any CPU, so the plan has the runner read /sys/devices/system/cpu/isolated, record it with /proc/cmdline, and refuse a non-isolated CPU instead of hard-coding 17.
@EYH0602
EYH0602 force-pushed the docs/checker-timing branch from 0c3760b to 15c9d45 Compare November 10, 2026 19:01
bench_container.py gains --runs N (one image build, N sequential runs, each with batch id and index in provenance), host load sampled during every timed docker run, --cpuset-cpus that refuses CPUs missing from the Docker VM's /sys/devices/system/cpu/isolated and records that list and /proc/cmdline, and record-only --demoted-pid and --batch-note. Provenance schema becomes lara-bench-provenance@2. bench_compare.py reports every run of a batch, excludes only failed runs, refuses changed outputs or mixed revisions, and picks the table run by the lower-median rule.
docs/checker-timing.md reports three batches at 018a2ae (10 unpinned, 5 with host busy loops, 10 pinned to the VM's isolated CPU): about 200 us per check and render, 440 us end to end, 2.3% and 1.2% run-to-run spread, and a 5.8% rise under host load. docs/evaluation.md now describes the repeat-and-report protocol, bench_compare.py, and keeping every run; docs/README.md indexes the report. The executed plan is removed; its protocol lives in docs/evaluation.md and its findings in the report. Part of #70.
@EYH0602 EYH0602 changed the title docs(bench): correct the per-check timing claim and plan the timing run feat(bench): repeat-and-report timing runs and the checker timing record Nov 10, 2026
… pinning

Copies all 25 runs with their in-run load into the report, since the run directories are gitignored, and states that the sequential batch order confounds pinning with time order and lingering busy-loop load. Drops the unmeasured idle-machine estimate.
Evidence record with every run and the failed quiet windows; trace nodes N425 (dead end), N426 (protocol decision), N427 (batches) and N428 (unresolved conflict with the ~7 us hs_check figure in constraints.md, flagged in place); staged O221; session 2026-11-10_001, index row and reasoning log.
@EYH0602
EYH0602 merged commit 5747fb5 into main Nov 10, 2026
3 checks passed
@EYH0602
EYH0602 deleted the docs/checker-timing branch November 10, 2026 22:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bench: publication timing run and checker-timing report

1 participant