Loading...

Perf Check Before Core Front-End PRs

RULES.md

Before opening a PR that touches `haxcms-elements` core (store, site builder, router, theme base classes), the site menu, i18n, or a theme, run the haxcms-nodejs perf harness against the monorepo source: `NODE_ENV=development HAXCMS_WEBCOMPONENTS_ROOT=<your webcomponents checkout> npm run perf:memory -- --short` in a haxcms-nodejs checkout (about 90 seconds), once on `master` and once on the branch, and compare the per-visit numbers (heap, DOM nodes, listeners, live MobX reactions, observed detached nodes, i18n registrations). If any moved, put the before/after in the PR. For load-time changes run `npm run perf:lighthouse -- --short`; for changes whose cost grows with page count run `npm run perf:scale -- --sizes 100,500,1000`. Lighthouse alone does not catch memory regressions. See https://github.com/haxtheweb/haxcms-nodejs/tree/main/test/perf (haxtheweb/issues#3245). In PRAW RULES.md (scope: webcomponents). Enforced by Render benchmarks. Render benchmarks run on PRs and report without failing.

Connects to

Links