Skip to content

The apply against egg: the committed counts - #155

Merged
MaxGekk merged 2 commits into
mainfrom
apply-counts
Nov 22, 2026
Merged

MaxGekk merged 2 commits into
mainfrom
apply-counts

Conversation

@MaxGekk

@MaxGekk MaxGekk commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

Closes #154. Documentation only: benchmarks/apply-counts.md, the committed table of the apply count, and its row in the benchmarks README.

The table pairs, per language over the SAME bucket of 1,000 fuzz terms, what jegg's apply does with what egg's does: the applications handed to the appliers, the right-hand sides' adds and those that made a class, every add with its hits and news, the unions, both sides' identities, the per-term ratio of adds, and the allocation under the apply by class and by frame. The counters live on the probe branch rebuild-probe (egg's in dev/fuzz/probe.patch, jegg's in EGraph.Probe), as the rebuild's do.

Why are the changes needed?

The compare job times jegg's apply at 1.4 to 2x egg's. The count says the right-hand sides do the same work to the count: the same applications, the same adds (prop 18,729,210 against 18,731,427). The one difference in work is that jegg's adds make a class more often: 1.29x egg's on prop, 1.13x on math, 1.03x on lambda, with the unions and the rebuild's congruences following. That is #137, now located in the apply's adds, with two candidate causes named for its next count. On lambda, where the work agrees within 4%, the gap is the cost per operation; the file says what an add allocates (126 bytes on prop, 104 on math).

Does this PR introduce any user-facing change?

No.

How was this patch tested?

Documentation. The numbers are the run's own summary, run 45038970795, artifact probe-22, on an EPYC 7763; a smoke run and a first full run agreed on every count they shared. The predictions and their scores are on #154: prediction 1 held, 2 held on math and lambda, 3 failed on all three, 4 failed on prop and math. By the issue's exit clause the count says where the extra work is, and the next issue is #137.

Was this patch authored or co-authored using generative AI tooling?

Generated-by: Claude Code (Claude Fable 5.1)

Max Gekk added 2 commits November 22, 2026 16:29
benchmarks/apply-counts.md: the run's apply tables for prop, math and lambda,
the bytes per add, the reading, and how it is measured; the README names it.

Generated-by: Claude Code (Claude Fable 5.1)
…e reading corrected (#154)

Generated-by: Claude Code (Claude Fable 5.1)
@MaxGekk
MaxGekk merged commit 759d77c into main Nov 22, 2026
1 check passed
@MaxGekk
MaxGekk deleted the apply-counts branch November 22, 2026 16:04
MaxGekk pushed a commit that referenced this pull request Nov 22, 2026
…ks the host too

Generated-by: Claude Code (Claude Fable 5.1)
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.

The apply phase at 1.5 to 2x egg's: what an application does, counted on both sides

1 participant