perf(next-plugin): profile and reuse Turbopack prewarm output - #645
Open
owjs3901 wants to merge 20 commits into
Open
perf(next-plugin): profile and reuse Turbopack prewarm output#645owjs3901 wants to merge 20 commits into
owjs3901 wants to merge 20 commits into
Conversation
Contributor
Changepacks@devup-ui/next-plugin@1.0.83 - packages/next-plugin/package.jsonMaybe you forgot to write the following files to the latest version |
Codecov Report✅ All modified and coverable lines are covered by tests.
🚀 New features to boost your workflow:
|
added 11 commits
August 29, 2026 01:05
owjs3901
force-pushed
the
owjs3901/turbo-profile
branch
from
August 28, 2026 16:05
c417e05 to
679c2ec
Compare
added 9 commits
August 29, 2026 01:19
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.
Summary
singleCssprewarm output so Turbopack loaders do not repeat WASM extractionbenchmark.jscomparison in the existing Publish workflow: remove Next memory-debug overhead, clean every sample, alternate order, and report six-sample mediansValidation
wasm-packrelease build completed after Smart App Control was disabled; no security-policy bypass was usedcoordinator.tsExisting benchmark.js CI result
Six alternating cold builds on the same Ubuntu runner, using normal
next build:Raw wall samples:
The type changes reduced the Devup fixture's CI type check from roughly 840 ms to 351 ms without weakening inference. A Rust/WASM
-O3experiment was rejected: it produced a 7.61 s Devup median versus 6.95 s Tailwind and increased package-build time and WASM size. The compacts/-Ozsettings remain.Structured timings put CSS/sheet/class/file serialization below 1 ms, so batching/debouncing it would add complexity without addressing the measured bottleneck.
Benchmark limits
This is substantially fairer than the previous one-shot fixed-order benchmark, but it is still not proof that one library is generally faster. The fixtures are not semantically identical: Tailwind uses untyped class strings and emits its framework CSS, while Devup validates rich responsive/polymorphic props and emits much less CSS. The latest full-build median is still 60 ms slower; the two preceding clean runs were also 160 ms and 110 ms slower. This PR therefore does not claim that Devup currently beats Tailwind end-to-end. Disabling type checking or weakening inference would reverse the goal and was deliberately not done.
The local full pre-commit suite still has an unrelated Bun transform-cache issue that resolves
df/devup-ui.cssfrom another worktree (5055 pass, 7 fail); it does not reproduce on clean CI.bun.lockand the add-bench PR are excluded from this PR's changes.