Skip to content

Check that paired footprint runs measure the same programs - #1507

Merged
mgomes merged 2 commits into
masterfrom
yori/vibe-239
Dec 4, 2026
Merged

mgomes merged 2 commits into
masterfrom
yori/vibe-239

Conversation

@mgomes

@mgomes mgomes commented Dec 3, 2026

Copy link
Copy Markdown
Collaborator

A paired scripts/footprint.py --baseline run checked only that both revisions made 1,000 calls over the same total source bytes. An edit that keeps a fixture's length, or a reordering of the programs, passed that check, so the report could credit a workload change to the compiler change. Changing sing(99) to sing(19) in one fixture kept all 159,089 bytes but cut steps from 8,862,340 to 8,700,740, and the old check would have reported that as a speedup.

The footprint example now records a digest of the ordered program names and sources in its workload: FNV-1a, as examples/compare.rs uses for outputs, with each name and source length-framed so bytes moved across a boundary change it too. The driver compares the digest with the call count and source bytes, and names the key that differs. A baseline from before the digest has none and is rejected, not taken as matching.

VIBE-239

Yori added 2 commits December 3, 2026 18:38
The workload record carries the call count and total source bytes, which an
edit that keeps a fixture's length, or a reordering, leaves unchanged. Add an
FNV-1a digest of the ordered program names and sources, each length-framed so
bytes moved across a boundary change it too.

VIBE-239
A paired run compared only the call count and source bytes, so a fixture
edited without changing its length, or reordered, would let the report
attribute a workload difference to the compiler change. Compare the digest
too, and name the differing key in the failure. A baseline from before the
digest is rejected rather than taken as matching.

VIBE-239
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 3, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-12-04T00:20:50.476040Z 31dc6a6 Manual request
🔒 Security Review ✅ Completed 2026-12-03T23:59:54.692419Z 31dc6a6 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@mgomes

mgomes commented Dec 4, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Hooray!

Reviewed commit: 31dc6a6068

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@mgomes
mgomes merged commit 1aed05f into master Dec 4, 2026
12 checks passed
@mgomes
mgomes deleted the yori/vibe-239 branch December 4, 2026 00:36
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.

1 participant