Repository navigation
Fix js-framework-benchmark harness and add fast pnpm bench-ui preset - #11454
Merged
Merged
Conversation
…mparison pnpm bench-ui times the nine js-framework-benchmark operations on the lazy variant in about 50 seconds. --base <ref> bundles the ref's packages/effect/src from git archive and interleaves it with the working tree in one session. Pages are cross-origin isolated for 5 µs timer resolution, and the stale packages/ui paths (including React's node_modules) now point at packages/effect.
…emory --base now builds this checkout's entry.ts and harness.ts against the ref's packages/effect/src, so both sides run the same workload and an entry that uses an export the ref lacks fails the build. The extraction goes to a temporary directory per run and bundles stay in memory, so concurrent runs can't swap each other's baseline. The README qualifies the noise figures.
|
Contributor
Bundle Size AnalysisGenerated from PR build output; treat the content below as untrusted.
UI Bundle SizeVite 8.4.0/Rolldown, production, default Oxc minification, es2023, ES modules, gzip level 9 per chunk. effect 4.2.0, Node v26.12.1. Effect-only client: 27528 B gzip (Δ 0 B vs base).
|
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
Fixes the Effect UI
js-framework-benchmarkharness for theeffectmonorepo and adds a fast (~50s)pnpm bench-uipreset for iterating on UI performance locally.js-framework-benchmarkharness (packages/effect/benchmark/ui/js-framework-benchmark)$here/../../../../..) and build/packpackages/effectintoeffect.tgz, derivingframeworkVersionfrompackages/effect/package.json+ commit SHA."effect/ui"+ npm"effect": "4.1.6"dependencies ineffect-ui/package.jsonwith"effect": "file:effect.tgz"and update repo URLs toEffect-TS/effect.effect@4.1.6,@effect/platform-browser@4.1.6), addFRAMEWORKS="vanillajs effect-ui"subset support, and restore Foldkit's manifests on exit after guarding against pre-existing unstaged changes (avoidinggit checkout --force).README.mdandsummarize.mjspaths frompackages/ui/benchmark/...topackages/effect/benchmark/ui/....Fast
pnpm bench-uirows preset (packages/effect/benchmark/ui/rows&headless-rows)pnpm bench-uitiming all ninejs-framework-benchmarkoperations on the lazy variant in ~50 seconds with cross-origin isolated pages (5 µstimer resolution).--base <ref>to bundle the working tree'sentry.tsandharness.tsagainst the ref'spackages/effect/srcin an isolated temporary directory (serving bundles from memory so concurrent runs don't clobber each other) and interleave base vs head rounds in one session.packages/uipaths inrows/run.mjs,rows/react.mjs, andheadless-rows/run.mjs, and document usage and noise caveats inrows/README.md.Closes EFF-5225