Repository navigation
perf baseline: re-record the output digests against current main (digests only) - #668
Conversation
…ests only) The output-identity gate is a hard fail, and main itself has been failing it: the committed digests predate #295/#296 (negated relations) and #649 (list label and item-text geometry, /ActualText groups), so every PR touching layout tripped a gate that main could not pass either. Re-recorded on the reference host at main 35ead1c over the full 26-case corpus. 14 cases move, 116 digest values in all; 12 are byte-identical, including both synthetic documents and math-heavy/tikz-heavy. ONLY the per-case `digests` maps change. `meta`, `targets`, every per-case `metrics` map and `load1_max` are byte-identical to #206's capture, verified field by field -- no timing number here is claimed to have been measured on this host, and none has been replaced. Attribution, by re-recording at 44b21ad (main immediately before #649) and diffing both ways: pre-#649 (#295 \ne paint position, #296 \not as a zero-width \mathrel): hw2, inline-math, math-sheet, ps-calculus, twelvept-plain -- every corpus document containing \ne, \neq or \not, which is two more than a \ne-only grep finds. #649 (#611/#625/#628 list label and item-text offsets; #614 /ActualText): cv, enumitem-worksheet, hyperref-toc, lab-report, lecture-notes, listings-manual, lmodern-report, plain-article, ps-calculus, thesis-chapter, twelvept-plain. The changed set is exactly the documents using itemize/description or a negated relation. hw1 is unchanged and uses only enumerate, which the list work did not move; lecture-notes changed only its export.pdf and v2 keys, from #614 grouping the \gcd/\lcm multi-glyph runs. Digests are independent of --runs: a control at --runs 5 (CI's setting) over hw1, math-sheet and plain-article reproduces the --runs 1 digests exactly. Gate after the re-record, at main, full corpus: 601 metrics compared, no digest change, exit 0. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Xd5Hmwh5GHNTiAmHUJ1MZu
|
CI confirms it: No which is exactly the limitation this PR documents rather than papers over: the runner is an EPYC/Xeon, #206's capture was a local Ryzen worktree, and Also worth noting for the record: 239 unenforced timing deltas here versus 85 in my local run against the same baseline, on the same file. That spread is between two runs of the same unchanged timings, which is its own evidence that the timing half of this baseline is not currently comparable to anything. Whoever picks that up next needs a decision on where the reference capture lives, not a re-record. |
Re-records the output digests only in
crates/perf-bench/baselines/linux-x86_64-ryzen7-7800x3d.json, on the reference host, at main35ead1c2.Why this is a main-level task
The output-identity check is a hard gate — "byte-identical output is a hard gate, so this fails regardless of timings". The committed digests predate #295/#296 and #649, so main itself fails the gate (run at
ec3cb67c:FAIL: output changed in 20 place(s)), and every PR touching layout inherited a failure it did not cause. That is baseline debt, not any one PR's.What changed, and only what changed
14 of 26 cases move, 116 digest values. 12 cases are byte-identical, including both synthetic documents and
math-heavy/tikz-heavy.meta,targets, every per-casemetricsmap and everyload1_maxare byte-identical to #206's capture, checked field by field:The file keeps its original compact single-line JSON, so the diff is
1 insertion, 1 deletionrather than a reformat.Attribution — measured, not asserted
I re-recorded a second time at
44b21adc(main immediately before #649) and diffed both ways, so each case's change lands in a commit range:\nepaint position) and #296 (\notas a zero-width\mathrel)hw2,inline-math,math-sheet,ps-calculus,twelvept-plain/ActualTextcv,enumitem-worksheet,hyperref-toc,lab-report,lecture-notes,listings-manual,lmodern-report,plain-article,ps-calculus,thesis-chapter,twelvept-plainOne correction to the brief. The negated-relation set is five fixtures, not three.
ps-calculus(\neq×1,\not×2) andtwelvept-plain(\neq×1) also moved before #649 — a\ne-only grep misses them because they use the\neq/\notspellings. #295/#296's blast radius was slightly wider than a\nesearch suggests, andhw2's own hit is\ne\varnothing, which a\ne-with-space search also misses.The changed set is exactly documents using
itemize/description, or a negated relation, which is what the landed work predicts:hw1is unchanged and uses onlyenumerate(0itemize) — the list work moved itemize markers and item-text offsets, not enumerate.lecture-noteshas noitemizeand changed onlycold.reply,export.pdfand the four v2 warm keys, never v1 — that is pdf: optional /ActualText groups so multi-glyph symbols extract as one character #614 grouping its\gcd/\lcmmulti-glyph runs into/ActualText, a v2-and-PDF-only change.letter,conf-paper,article-twocolumn,input-bibliography,natbib-review,siunitx-tables,unicode-accentshave neither and are byte-identical.Method, and its stated limitation
flashtex-perf-bench --runs 1 --warmup 0 --json fresh.json # full 26-case corpus, at 35ead1c2then a script that copies only each case's
digestsmap into the committed baseline.--runs 1is safe for digests and I proved it rather than assuming: a control run at--runs 5(CI's own setting) overhw1,math-sheetandplain-articlereproduces the--runs 1digests exactly. Fewer runs only thins the timing samples, which are discarded here.Timings are deliberately not re-recorded, and could not usefully be. #206's baseline was captured in a local scratch worktree, and
meta.font_configrecords that worktree's absolute paths. The harness compares that string to decide whether two runs are the same profile, so even a run on this same Ryzen machine is treated as a different host/profile — the verification gate below reports85 timing regression(s) reported but not enforced: the baseline was recorded on a different host/profile. Re-recording timings here would therefore not make CI's timing comparison valid; CI runs on EPYC/Xeon runners and will keep reporting-not-enforcing regardless. Making timing comparisons meaningful needs a separate decision about where the reference capture lives, and is out of scope for this PR.Verification
Full corpus at main with the new baseline:
No
OUTPUT CHANGED, noFAIL, exit 0 — the digest gate passes on main again. CI's 13-case subset is a subset of what was re-recorded.