Repository navigation
feat(bench): repeat-and-report timing runs and the checker timing record - #69
Merged
Merged
Conversation
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
force-pushed
the
docs/checker-timing
branch
from
November 10, 2026 19:01
0c3760b to
15c9d45
Compare
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.
… 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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Merge with a merge commit, not squash. The timing record is pinned to
018a2ae(task 1), which must stay reachable frommain.Commits
19ab5d3docs(bench): correct the per-check timing claim (single-digit µs → a few hundred µs)235e8ca,fae83db,15c9d45docs(bench): the timing-run plan (removed inf7abe5eonce executed)018a2aefeat(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-cpusrefused unless every CPU is in the VM's/sys/devices/system/cpu/isolated(list and/proc/cmdlinerecorded), record-only--demoted-pidand--batch-note; provenancelara-bench-provenance@2bench_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 rulescripts/test_bench_container.py(36 pass locally)f7abe5edocs(bench): record the 2026-11-10 checker timing batches —docs/checker-timing.md, protocol indocs/evaluation.md, index indocs/README.mdResults at 018a2ae (Apple M5 Pro, OrbStack 2.2.5)
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
larabehavior, contract or Lean change, so no version bump. Closes #70. The paper'stables/performance.texrefresh is tracked in the paper repository.Follow-up commits
13267f8docs(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)7afe654docs(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)