Repository navigation
two bench pages shipped 3,000 swaps to show 50, and the hub drew 104 lines in a 400 px card - #2955
Merged
Merged
Conversation
…lines in a 400 px card terminal-fill-quality and terminal-execution-quality were 2.4 MB of HTML each, 85% of it the audit table's full sample serialised as a client prop. The page now embeds the 50 most recent rows and the table fetches the rest from /api/terminal-fills/swaps (CDN-cached 5 min) after hydration; the summary strip and the CSV wait for the full set. /benchmarks was 2.5 MB, 1 MB of it sparkline SVG. Bench cards now draw their 12 best lines (the legend still counts every provider), the card projection carries only those series, coordinates take one decimal, and the shared stroke style sits once on a group. Sparkline markup -38%. ISR writes bill per 8 KB written, so page weight times regenerations is what that line of the bill measures.
Flotapponnier
added a commit
that referenced
this pull request
Oct 12, 2026
…lines in a 400 px card (#2955) (#2957) terminal-fill-quality and terminal-execution-quality were 2.4 MB of HTML each, 85% of it the audit table's full sample serialised as a client prop. The page now embeds the 50 most recent rows and the table fetches the rest from /api/terminal-fills/swaps (CDN-cached 5 min) after hydration; the summary strip and the CSV wait for the full set. /benchmarks was 2.5 MB, 1 MB of it sparkline SVG. Bench cards now draw their 12 best lines (the legend still counts every provider), the card projection carries only those series, coordinates take one decimal, and the shared stroke style sits once on a group. Sparkline markup -38%. ISR writes bill per 8 KB written, so page weight times regenerations is what that line of the bill measures. (cherry picked from commit f70a199)
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.
ISR Writes is now the largest line of the Vercel bill ($1.58/day), and it bills per 8 KB written, so page weight × regenerations is the cost.
Terminal fill / execution quality (2.4 MB each). 85% of the HTML was the audit table's ~3,000 swaps passed as a client prop, for a table that shows 50. The page now embeds the 50 most recent; the table fetches the full sample from the new
/api/terminal-fills/swaps(CDN-cached 5 min, same cadence as the harness JSON) after hydration. Until it lands, the summary strip reads "Loading all N swaps…" and the CSV button is disabled, so no statistic is ever computed on the partial set. Locally: 2.4 MB → 0.78 MB (dev build)./benchmarks (2.5 MB, 1 MB of sparkline SVG). One card drew 104 polylines in 400 × 48.
toBenchmarkCardDataships only the drawn series.<g>.Checks:
tsc, eslint on the touched files,bun test src/lib src/data(453 pass), local render of the three pages and the new route.