Memory and DOM over timeβ
JS heap, DOM nodes and event listeners over the whole form scenario β one line per stack. Phases are aligned: a phase's measurement window is a band as wide as the slowest stack, and between the bands is a gap without measurement. Hover the chart or press β/β β the tooltip shows every stack's values at that moment. The DOM node count depends on the component library's markup.
- Registration with a captcha
- Credit application
- hover a name to highlight its line
- hover a name to highlight its line
Key resultsβ
Key metrics of each form: the bar is the median over 10 runs, the whisker is the interquartile range. Lower is better. There is no βbestβ mark and no significance: the stacks differ not only in the framework but also in the component library, so a difference in the numbers is about the whole stack.
- React
- Vue
- Angular
- spread across runs (q25βq75)
- Registration with a captcha
- Credit application
All phasesβ
A cell is the median over 10 runs at CPU 4x (each run is reduced first: for example, the median latency over all keys of the phase), below it is the q25βq75 spread. Lower is better. The JS (CDP) rows understate Vue β see the methodology. Expand a phase to see the charts.
- Registration with a captcha
- Credit application
Cold load
| Metric | React | Vue | Angular |
|---|---|---|---|
| Form ready (from navigation start), ms | 466462β482 | 557544β574 | 619611β632 |
| First Contentful Paint, ms | 274268β276 | 534525β557 | 598593β613 |
| JS execution (CDP ScriptDuration), ms | 293282β308 | 119113β126 | 297288β299 |
| Total Blocking Time, ms | 216203β229 | 392382β399 | 443437β451 |
| JS heap after GC, KB | 29922992β2992 | 43484346β4349 | 46794679β4679 |
| DOM nodes | 114114β114 | 550550β550 | 245245β245 |
Load by invitation (hydration with a prefill)
| Metric | React | Vue | Angular |
|---|---|---|---|
| Form ready (from navigation start), ms | 500487β506 | 503500β527 | 617611β624 |
| First Contentful Paint, ms | 268260β275 | 206204β208 | 296289β312 |
| Hydration: prefill response β ready, ms | 216211β220 | 312305β334 | 333322β336 |
| JS execution (CDP ScriptDuration), ms | 290280β294 | 110109β115 | 300289β312 |
| Total Blocking Time, ms | 211201β217 | 264259β285 | 371356β384 |
| JS heap after GC, KB | 29232923β2923 | 44314431β4431 | 46824682β4682 |
| DOM nodes | 116116β116 | 552552β552 | 247247β247 |
Typing before the first submit (username, email)
| Metric | React | Vue | Angular |
|---|---|---|---|
| Key β end of processing (median), ms | 7.457.33β7.67 | 13.813.1β14.3 | 9.108.77β9.34 |
| Key β end of processing (p95 of a run), ms | 14.713.1β15.5 | 20.519.3β21.4 | 13.212.4β14.4 |
| Key β end of frame (median), ms | 8.608.51β8.81 | 15.214.6β15.8 | 10.39.94β10.5 |
| JS per key (CDP), ms | 2.392.34β2.49 | 1.431.41β1.47 | 3.493.44β3.56 |
| Layout + style per key, ms | 1.681.58β1.73 | 3.353.22β3.46 | 1.961.95β1.98 |
| Events β₯ 16 ms (Event Timing) | 110104β112 | 156154β157 | 123120β126 |
| Total Blocking Time, ms | 0.000.00β0.00 | 0.000.00β0.00 | 0.000.00β0.00 |
Submit with errors β errors on screenspread > 15 %
| Metric | React | Vue | Angular |
|---|---|---|---|
| Click β end of frame, ms | 81.379.3β104 | 109107β123 | 89.386.3β90.3 |
| Click β UI settled, ms | 89.487.0β110 | 80.980.4β82.1 | 87.785.3β88.9 |
| JS execution (CDP), ms | 49.146.1β60.0 | 11.410.9β11.8 | 42.141.8β43.7 |
| Layout + style, ms | 24.323.5β28.5 | 45.442.6β49.4 | 29.529.0β30.6 |
Spread above 15 % (CV): Click β end of frame; Click β UI settled; JS execution (CDP); Layout + style.
Typing after submit β live validation (password, name, phone)
| Metric | React | Vue | Angular |
|---|---|---|---|
| Key β end of processing (median), ms | 11.010.5β11.4 | 15.615.5β15.8 | 10.210.1β10.4 |
| Key β end of processing (p95 of a run), ms | 20.219.5β20.6 | 30.828.8β32.1 | 18.217.6β19.1 |
| Key β end of frame (median), ms | 12.211.8β12.6 | 17.116.9β17.2 | 11.411.3β11.5 |
| JS per key (CDP), ms | 4.764.68β4.80 | 1.771.73β1.80 | 4.154.11β4.22 |
| Layout + style per key, ms | 3.092.91β3.41 | 6.186.06β6.69 | 2.742.70β2.77 |
| Events β₯ 16 ms (Event Timing) | 156149β163 | 182177β183 | 146143β150 |
| Total Blocking Time, ms | 0.000.00β0.00 | 0.000.00β0.00 | 0.000.00β0.00 |
Taken username: typing β server errorspread > 15 %
| Metric | React | Vue | Angular |
|---|---|---|---|
| Typing β UI settled (incl. 300 ms debounce and 20 ms network), ms | 10441042β1053 | 11221121β1134 | 10741070β1089 |
| Key β end of processing (median), ms | 13.812.8β15.2 | 18.518.0β19.6 | 11.310.8β11.8 |
| JS execution over the phase (CDP), ms | 37.536.1β39.5 | 20.319.0β21.2 | 43.941.1β46.4 |
Spread above 15 % (CV): Key β end of processing (median).
βUI settledβ is the last DOM change, and the component libraries produce it differently. @reformer/ui-kit shows an indicator under the field while the server checks and removes it on the server response β the phase settles after the response. Vuetify rewrites the value attribute of the field on every key β the phase settles no earlier than the last key. Taiga UI writes the value as a property and does not change the DOM on the server response β the phase settles as soon as the synchronous error is removed. Do not compare this row between stacks: input latency is compared by βkey β end of processingβ.
Fixing the username: typing β error cleared
| Metric | React | Vue | Angular |
|---|---|---|---|
| Typing β UI settled (incl. 300 ms debounce and 20 ms network), ms | 987980β999 | 10921082β1099 | 311308β316 |
| Key β end of processing (median), ms | 10.910.0β11.7 | 15.114.2β15.7 | 9.759.63β10.1 |
| JS execution over the phase (CDP), ms | 32.632.3β34.0 | 17.116.6β17.5 | 40.237.9β41.2 |
βUI settledβ is the last DOM change, and the component libraries produce it differently. @reformer/ui-kit shows an indicator under the field while the server checks and removes it on the server response β the phase settles after the response. Vuetify rewrites the value attribute of the field on every key β the phase settles no earlier than the last key. Taiga UI writes the value as a property and does not change the DOM on the server response β the phase settles as soon as the synchronous error is removed. Do not compare this row between stacks: input latency is compared by βkey β end of processingβ.
Captcha refreshspread > 15 %
| Metric | React | Vue | Angular |
|---|---|---|---|
| Click β end of frame, ms | 14.514.4β14.9 | 20.620.0β21.5 | 18.917.9β20.2 |
| Click β UI settled, ms | 43.042.5β44.8 | 49.947.8β51.0 | 38.137.5β39.5 |
| JS execution (CDP), ms | 4.314.10β4.48 | 2.672.62β3.01 | 5.254.87β5.52 |
| Layout + style, ms | 8.948.49β9.13 | 7.126.43β7.42 | 7.957.53β8.14 |
Spread above 15 % (CV): Click β end of frame; JS execution (CDP); Layout + style.
Typing the captcha with a server check
| Metric | React | Vue | Angular |
|---|---|---|---|
| Typing β UI settled (incl. 300 ms debounce and 20 ms network), ms | 884878β889 | 647636β653 | 529525β543 |
| Key β end of processing (median), ms | 16.615.9β17.3 | 29.128.8β29.3 | 11.110.4β11.5 |
| JS execution over the phase (CDP), ms | 45.543.5β49.2 | 16.215.7β16.4 | 32.932.0β33.8 |
βUI settledβ is the last DOM change, and the component libraries produce it differently. @reformer/ui-kit shows an indicator under the field while the server checks and removes it on the server response β the phase settles after the response. Vuetify rewrites the value attribute of the field on every key β the phase settles no earlier than the last key. Taiga UI writes the value as a property and does not change the DOM on the server response β the phase settles as soon as the synchronous error is removed. Do not compare this row between stacks: input latency is compared by βkey β end of processingβ.
Terms checkbox
| Metric | React | Vue | Angular |
|---|---|---|---|
| Click β end of frame, ms | 27.526.7β27.7 | 42.841.8β46.8 | 38.837.6β41.7 |
| Click β UI settled, ms | 20.419.7β21.5 | 38.036.8β41.3 | 37.536.5β40.5 |
| JS execution (CDP), ms | 14.113.7β14.4 | 4.434.33β4.56 | 9.709.33β10.0 |
| Layout + style, ms | 8.087.80β8.48 | 12.812.2β14.3 | 22.520.6β23.7 |
Successful submit
| Metric | React | Vue | Angular |
|---|---|---|---|
| Click β end of frame, ms | 23.723.3β24.1 | 22.721.3β24.4 | 19.118.4β19.8 |
| Click β UI settled, ms | 44.542.3β47.1 | 51.649.0β53.0 | 45.541.1β48.0 |
| JS execution (CDP), ms | 13.712.9β14.5 | 3.303.16β3.72 | 6.956.53β7.52 |
| Layout + style, ms | 10.59.98β11.1 | 12.510.9β13.5 | 7.887.54β8.36 |
Form remountspread > 15 %
| Metric | React | Vue | Angular |
|---|---|---|---|
| Mount: render + commit + effects, ms | 0.700.63β0.70 | 2.482.41β2.74 | 7.427.25β7.57 |
| Mount: until the frame with the ready form, ms | 29.328.7β30.8 | 113110β116 | 91.690.1β94.1 |
| JS per mount + unmount cycle (CDP), ms | 18.417.2β19.3 | 0.960.91β1.00 | 46.545.1β47.6 |
| Objects retained after unmount, KB/cycle | 0.040.04β0.04 | 0.230.23β0.23 | 0.680.66β0.70 |
| Heap growth per remount after warm-up (incl. JIT code), KB/cycle | 5.375.36β5.41 | 2.022.01β2.44 | -3.47-3.61β-3.39 |
| DOM node growth per remount | 0.00.0β0.0 | 0.00.0β0.0 | 0.00.0β0.0 |
Spread above 15 % (CV): Heap growth per remount after warm-up (incl. JIT code).
Remount is a new framework root with the form: createRoot in React, createApp in Vue, createComponent in Angular. The component library is set up once per page (a Vuetify instance, Taiga UI providers). The form is built after the initial values load, so βsynchronous mountβ covers only the page shell β compare βmount until readyβ.
Before measuring, the form is remounted for warm-up without recording: in the first few dozen cycles the heap grows with engine code (bytecode, feedback vectors, optimized code). βObjects retainedβ is the growth of live page objects between heap snapshots before and after the series, without JIT code: a leak is when it is above zero.
In Vue, one form tree stays in memory after unmounting β the first one, mounted on page load, for the whole page lifetime; later ones are collected. Vuetify holds it: useProxiedModel puts an externalValue accessor with a closure over the component on a computed, and V8 keeps such an accessor in the shared descriptor table of the class, which lives as long as any computed does, e.g. the theme of the shared Vuetify instance. It is a single tree and does not accumulate: after garbage collection, nodes and βObjects retainedβ do not grow from cycle to cycle.
Cold loadspread > 15 %
| Metric | React | Vue | Angular |
|---|---|---|---|
| Form ready (from navigation start), ms | 567555β596 | 607593β645 | 699686β720 |
| First Contentful Paint, ms | 288285β306 | 620599β657 | 706696β724 |
| JS execution (CDP ScriptDuration), ms | 393379β414 | 121114β133 | 349340β364 |
| Total Blocking Time, ms | 281267β298 | 470452β483 | 540513β547 |
| JS heap after GC, KB | 36613659β3661 | 46434643β4643 | 49914990β4993 |
| DOM nodes | 213213β213 | 483483β483 | 274274β274 |
Spread above 15 % (CV): Form ready (from navigation start); First Contentful Paint.
Loading a saved application (hydration with data)spread > 15 %
| Metric | React | Vue | Angular |
|---|---|---|---|
| Form ready (from navigation start), ms | 579561β589 | 569561β605 | 671666β690 |
| First Contentful Paint, ms | 288280β296 | 216209β220 | 298293β307 |
| JS execution (CDP ScriptDuration), ms | 377372β389 | 116113β120 | 345334β353 |
| Total Blocking Time, ms | 263254β275 | 362355β380 | 456450β470 |
| JS heap after GC, KB | 36643661β3664 | 46524652β4652 | 50105010β5010 |
| DOM nodes | 216216β216 | 485485β485 | 276276β276 |
Spread above 15 % (CV): Form ready (from navigation start); First Contentful Paint.
βNextβ on an empty step 1 β errorsspread > 15 %
| Metric | React | Vue | Angular |
|---|---|---|---|
| Click β end of frame, ms | 66.961.9β73.9 | 67.865.1β69.1 | 64.462.2β66.6 |
| Click β UI settled, ms | 50.448.3β58.4 | 48.647.1β50.0 | 64.362.2β66.4 |
| JS execution (CDP), ms | 34.933.1β38.5 | 10.39.88β11.0 | 32.030.6β34.4 |
| Layout + style, ms | 15.213.6β16.7 | 27.326.2β29.0 | 15.314.3β15.9 |
Spread above 15 % (CV): JS execution (CDP); Layout + style.
Loan type β mortgage: conditional fields and rate
| Metric | React | Vue | Angular |
|---|---|---|---|
| Click β end of frame, ms | 159153β170 | 189185β190 | 127124β134 |
| Click β UI settled, ms | 551538β592 | 426407β451 | 281270β298 |
| JS execution (CDP), ms | 136131β150 | 34.231.3β37.8 | 117113β123 |
| Layout + style, ms | 83.479.1β87.3 | 48.846.9β52.1 | 78.575.1β82.9 |
All three component libraries use a pop-up list: the phase is opening the list and picking an option (two clicks and the panel appearing).
Step 1: amount, term, purpose, price (live validation, computed fields)spread > 15 %
| Metric | React | Vue | Angular |
|---|---|---|---|
| Key β end of processing (median), ms | 13.212.9β15.3 | 19.417.6β21.3 | 13.412.5β15.0 |
| Key β end of processing (p95 of a run), ms | 23.922.5β24.5 | 45.842.6β50.7 | 31.628.0β33.0 |
| Key β end of frame (median), ms | 14.714.1β16.4 | 21.218.9β23.3 | 14.413.7β16.3 |
| JS per key (CDP), ms | 5.124.92β5.29 | 2.121.94β2.25 | 5.094.78β5.53 |
| Layout + style per key, ms | 4.354.12β4.60 | 8.587.88β9.37 | 3.913.85β4.36 |
| Events β₯ 16 ms (Event Timing) | 144140β149 | 216213β217 | 173163β176 |
| Total Blocking Time, ms | 0.000.00β0.00 | 3.000.00β9.25 | 0.000.00β0.00 |
Spread above 15 % (CV): Total Blocking Time.
Go to step 2spread > 15 %
| Metric | React | Vue | Angular |
|---|---|---|---|
| Click β end of frame, ms | 158142β167 | 312267β367 | 228213β243 |
| Click β UI settled, ms | 157141β166 | 242209β283 | 262246β284 |
| JS execution (CDP), ms | 62.960.9β66.9 | 3.583.13β3.76 | 157143β164 |
| Layout + style, ms | 82.775.4β87.2 | 61.954.7β78.1 | 86.183.8β93.5 |
Spread above 15 % (CV): Click β end of frame; Click β UI settled; JS execution (CDP); Layout + style.
Step 2: full name, passport, tax ID (masks)
| Metric | React | Vue | Angular |
|---|---|---|---|
| Key β end of processing (median), ms | 11.910.5β12.8 | 16.816.3β18.1 | 11.710.6β12.8 |
| Key β end of processing (p95 of a run), ms | 20.318.6β20.8 | 27.124.1β30.0 | 24.421.9β26.3 |
| Key β end of frame (median), ms | 13.912.3β15.2 | 18.317.7β20.0 | 13.412.2β14.9 |
| JS per key (CDP), ms | 3.903.49β4.23 | 1.421.36β1.55 | 4.213.84β4.33 |
| Layout + style per key, ms | 3.172.76β3.41 | 6.055.70β6.55 | 3.002.87β3.28 |
| Events β₯ 16 ms (Event Timing) | 164160β173 | 191190β193 | 154151β162 |
| Total Blocking Time, ms | 0.000.00β0.00 | 0.000.00β0.00 | 0.000.00β0.00 |
Go to step 3spread > 15 %
| Metric | React | Vue | Angular |
|---|---|---|---|
| Click β end of frame, ms | 127114β140 | 277239β288 | 214195β220 |
| Click β UI settled, ms | 124113β138 | 229196β235 | 248233β255 |
| JS execution (CDP), ms | 81.172.2β91.7 | 5.934.86β7.03 | 144128β146 |
| Layout + style, ms | 35.734.3β37.9 | 47.543.3β53.4 | 85.680.8β93.5 |
Spread above 15 % (CV): JS execution (CDP).
Step 3: phone, email, address
| Metric | React | Vue | Angular |
|---|---|---|---|
| Key β end of processing (median), ms | 9.709.13β10.6 | 14.613.7β16.3 | 10.39.63β11.6 |
| Key β end of processing (p95 of a run), ms | 17.717.2β19.3 | 23.921.3β25.3 | 21.418.9β23.1 |
| Key β end of frame (median), ms | 11.510.6β12.4 | 16.215.1β18.2 | 11.811.0β13.7 |
| JS per key (CDP), ms | 2.792.63β3.08 | 1.341.28β1.47 | 3.363.14β3.60 |
| Layout + style per key, ms | 1.931.83β1.99 | 3.943.63β4.33 | 2.031.97β2.20 |
| Events β₯ 16 ms (Event Timing) | 192181β203 | 239234β242 | 186185β202 |
| Total Blocking Time, ms | 0.000.00β0.00 | 0.000.00β0.00 | 0.000.00β0.00 |
Go to step 4spread > 15 %
| Metric | React | Vue | Angular |
|---|---|---|---|
| Click β end of frame, ms | 10497.8β107 | 224201β245 | 170161β197 |
| Click β UI settled, ms | 10397.4β106 | 178158β192 | 198189β231 |
| JS execution (CDP), ms | 58.556.8β62.2 | 5.325.16β6.00 | 113106β125 |
| Layout + style, ms | 36.732.5β39.3 | 43.039.6β46.1 | 69.066.7β86.4 |
Spread above 15 % (CV): Click β end of frame; Click β UI settled; JS execution (CDP); Layout + style.
Employment status β sole proprietor: sections swapspread > 15 %
| Metric | React | Vue | Angular |
|---|---|---|---|
| Click β end of frame, ms | 41.637.1β46.6 | 96.784.7β104 | 102100β116 |
| Click β UI settled, ms | 32.928.5β35.9 | 70.863.5β76.5 | 103102β119 |
| JS execution (CDP), ms | 26.423.4β29.2 | 3.372.96β3.75 | 45.142.8β50.5 |
| Layout + style, ms | 6.315.73β7.31 | 16.714.7β20.1 | 46.044.1β50.4 |
Spread above 15 % (CV): JS execution (CDP); Layout + style.
Step 4: work experience and income (cross-field rules, payment ratio)spread > 15 %
| Metric | React | Vue | Angular |
|---|---|---|---|
| Key β end of processing (median), ms | 14.412.5β15.7 | 18.817.8β19.8 | 12.111.5β13.9 |
| Key β end of processing (p95 of a run), ms | 21.120.1β21.8 | 31.228.7β33.8 | 29.426.9β32.3 |
| Key β end of frame (median), ms | 16.714.1β17.1 | 20.119.2β21.4 | 13.713.1β16.3 |
| JS per key (CDP), ms | 4.554.34β4.83 | 1.401.33β1.60 | 4.224.07β4.51 |
| Layout + style per key, ms | 5.164.97β5.75 | 8.518.26β9.14 | 4.934.64β5.40 |
| Events β₯ 16 ms (Event Timing) | 65.565.0β72.5 | 74.074.0β75.0 | 60.558.3β63.5 |
| Total Blocking Time, ms | 0.000.00β0.00 | 0.000.00β0.00 | 0.000.00β0.00 |
Spread above 15 % (CV): Key β end of processing (median); Key β end of processing (p95 of a run); Key β end of frame (median); JS per key (CDP).
Go to step 5spread > 15 %
| Metric | React | Vue | Angular |
|---|---|---|---|
| Click β end of frame, ms | 10396.3β114 | 160152β171 | 116113β121 |
| Click β UI settled, ms | 10195.3β112 | 131126β146 | 120116β126 |
| JS execution (CDP), ms | 65.359.1β72.4 | 4.924.65β5.43 | 62.960.7β65.7 |
| Layout + style, ms | 29.928.9β30.8 | 28.324.4β29.6 | 42.141.4β42.9 |
Spread above 15 % (CV): Click β end of frame; Click β UI settled; JS execution (CDP); Layout + style.
Property array: switch on (first row)spread > 15 %
| Metric | React | Vue | Angular |
|---|---|---|---|
| Click β end of frame, ms | 72.365.5β77.8 | 113102β116 | 110104β116 |
| Click β UI settled, ms | 70.964.2β75.4 | 10190.5β103 | 116109β125 |
| JS execution (CDP), ms | 43.237.9β44.2 | 5.805.30β6.08 | 52.548.7β58.7 |
| Layout + style, ms | 18.117.9β22.2 | 17.816.4β18.7 | 47.846.3β52.6 |
Spread above 15 % (CV): Click β end of frame; Click β UI settled; JS execution (CDP); Layout + style.
Property array: add rows up to Nspread > 15 %
| Metric | React | Vue | Angular |
|---|---|---|---|
| Click β end of frame, ms | 10595.1β113 | 185174β205 | 176163β182 |
| Click β UI settled, ms | 1012984β1061 | 13621301β1385 | 11451106β1191 |
| JS execution (CDP), ms | 279257β295 | 28.226.5β28.5 | 364348β388 |
| Layout + style, ms | 81.478.9β90.2 | 88.081.7β98.3 | 384370β414 |
Spread above 15 % (CV): Click β end of frame; Layout + style.
βClick β end of frameβ for Angular is inflated here by the way it is measured. After the click, rows are added by pressing Enter every 80 ms. React and Vue re-render the form in the key handler, and the next key press waits for it to finish. Angular answers the key press at once and re-renders in a frame (requestAnimationFrame): the key presses keep coming, and while input and frames go on, the browser runs no ordinary tasks. The measurement marks the end of the frame with exactly such a task β for the first click it runs only at the end of the phase. By the browserβs Event Timing, the row after the first click is painted in about 70 ms with React and about 120β130 ms with Vue and Angular (CPU 4x, a separate probe on the same builds).
Property array: typing in the last rowspread > 15 %
| Metric | React | Vue | Angular |
|---|---|---|---|
| Key β end of processing (median), ms | 14.312.3β16.1 | 23.519.4β25.9 | 22.220.9β26.1 |
| Key β end of processing (p95 of a run), ms | 31.228.4β33.2 | 40.137.7β41.5 | 38.536.6β44.7 |
| Key β end of frame (median), ms | 18.415.5β21.0 | 29.024.4β32.9 | 28.426.4β31.2 |
| JS per key (CDP), ms | 2.332.18β2.61 | 1.371.30β1.67 | 5.504.94β6.16 |
| Layout + style per key, ms | 3.383.13β3.52 | 6.005.35β6.68 | 4.694.50β5.50 |
| Events β₯ 16 ms (Event Timing) | 36.035.0β37.0 | 33.032.3β33.8 | 37.036.3β37.0 |
| Total Blocking Time, ms | 0.000.00β0.00 | 0.000.00β0.00 | 0.000.00β0.00 |
Spread above 15 % (CV): Key β end of processing (median); Key β end of processing (p95 of a run); Key β end of frame (median); JS per key (CDP); Layout + style per key; Total Blocking Time.
Property array: remove the last rowspread > 15 %
| Metric | React | Vue | Angular |
|---|---|---|---|
| Click β end of frame, ms | 38.436.1β40.9 | 68.161.5β78.9 | 50.950.3β54.1 |
| Click β UI settled, ms | 24.923.7β26.0 | 48.344.4β53.4 | 26.726.1β28.3 |
| JS execution (CDP), ms | 15.114.3β15.5 | 5.795.25β6.80 | 14.814.5β14.9 |
| Layout + style, ms | 8.708.27β9.10 | 8.207.85β9.71 | 15.715.1β16.5 |
Spread above 15 % (CV): Click β end of frame; Click β UI settled; JS execution (CDP); Layout + style.
Property array: switch off (clear)spread > 15 %
| Metric | React | Vue | Angular |
|---|---|---|---|
| Click β end of frame, ms | 31.127.5β33.1 | 72.163.2β78.5 | 69.064.4β80.7 |
| Click β UI settled, ms | 24.422.1β25.9 | 62.354.5β67.3 | 68.363.0β78.5 |
| JS execution (CDP), ms | 19.017.9β20.5 | 3.593.43β4.05 | 38.137.0β44.8 |
| Layout + style, ms | 2.922.62β3.29 | 3.332.89β3.69 | 13.011.8β14.0 |
Spread above 15 % (CV): Layout + style.
Go to step 6spread > 15 %
| Metric | React | Vue | Angular |
|---|---|---|---|
| Click β end of frame, ms | 68.864.9β71.3 | 141121β163 | 123111β128 |
| Click β UI settled, ms | 68.663.3β71.3 | 125104β142 | 131112β134 |
| JS execution (CDP), ms | 34.833.2β38.9 | 5.835.38β7.77 | 72.062.4β74.8 |
| Layout + style, ms | 25.425.1β26.0 | 20.016.9β21.9 | 39.934.4β41.8 |
Spread above 15 % (CV): Click β end of frame; Click β UI settled; JS execution (CDP); Layout + style.
SMS code with a server checkspread > 15 %
| Metric | React | Vue | Angular |
|---|---|---|---|
| Typing β UI settled (incl. 300 ms debounce and 20 ms network), ms | 512504β522 | 545541β550 | 21.618.4β23.4 |
| Key β end of processing (median), ms | 12.110.8β12.3 | 16.114.3β18.5 | 9.259.15β10.6 |
| JS execution over the phase (CDP), ms | 23.622.2β24.8 | 8.458.01β10.1 | 18.817.9β21.7 |
Spread above 15 % (CV): Typing β UI settled (incl. 300 ms debounce and 20 ms network); Key β end of processing (median); JS execution over the phase (CDP).
βUI settledβ is the last DOM change, and the component libraries produce it differently. @reformer/ui-kit shows an indicator under the field while the server checks and removes it on the server response β the phase settles after the response. Vuetify rewrites the value attribute of the field on every key β the phase settles no earlier than the last key. Taiga UI writes the value as a property and does not change the DOM on the server response β the phase settles as soon as the synchronous error is removed. Do not compare this row between stacks: input latency is compared by βkey β end of processingβ.
Submitting the applicationspread > 15 %
| Metric | React | Vue | Angular |
|---|---|---|---|
| Click β end of frame, ms | 38.432.4β40.7 | 35.732.1β45.3 | 31.028.7β33.5 |
| Click β UI settled, ms | 77.475.4β83.7 | 86.383.5β89.3 | 79.478.1β84.0 |
| JS execution (CDP), ms | 25.222.5β29.0 | 9.398.43β13.0 | 15.214.1β17.0 |
| Layout + style, ms | 20.419.2β22.7 | 17.114.1β20.2 | 7.857.49β8.25 |
Spread above 15 % (CV): Click β end of frame; JS execution (CDP); Layout + style.
Form remountspread > 15 %
| Metric | React | Vue | Angular |
|---|---|---|---|
| Mount: render + commit + effects, ms | 1.001.00β1.09 | 2.972.81β3.42 | 8.187.95β8.55 |
| Mount: until the frame with the ready form, ms | 48.245.5β51.3 | 109103β125 | 110104β124 |
| JS per mount + unmount cycle (CDP), ms | 37.034.8β37.7 | 0.850.74β0.97 | 53.749.2β60.7 |
| Objects retained after unmount, KB/cycle | 0.120.10β0.14 | 0.190.17β0.19 | 0.350.34β0.38 |
| Heap growth per remount after warm-up (incl. JIT code), KB/cycle | 1.741.74β1.75 | 1.83-0.10β2.19 | 10.210.1β10.3 |
| DOM node growth per remount | 0.00.0β0.0 | 0.00.0β0.0 | 0.00.0β0.0 |
Spread above 15 % (CV): JS per mount + unmount cycle (CDP); Objects retained after unmount; Heap growth per remount after warm-up (incl. JIT code).
Remount is a new framework root with the form: createRoot in React, createApp in Vue, createComponent in Angular. The component library is set up once per page (a Vuetify instance, Taiga UI providers). The form is built after the initial values load, so βsynchronous mountβ covers only the page shell β compare βmount until readyβ.
Before measuring, the form is remounted for warm-up without recording: in the first few dozen cycles the heap grows with engine code (bytecode, feedback vectors, optimized code). βObjects retainedβ is the growth of live page objects between heap snapshots before and after the series, without JIT code: a leak is when it is above zero.
In Vue, one form tree stays in memory after unmounting β the first one, mounted on page load, for the whole page lifetime; later ones are collected. Vuetify holds it: useProxiedModel puts an externalValue accessor with a closure over the component on a computed, and V8 keeps such an accessor in the shared descriptor table of the class, which lives as long as any computed does, e.g. the theme of the shared Vuetify instance. It is a single tree and does not accumulate: after garbage collection, nodes and βObjects retainedβ do not grow from cycle to cycle.
Bundle sizeβ
A separate prod build of each page, the static closure from the page's modules. The bundle is the whole page: the framework, the component library, the renderer, the ReFormer core and the form code. The registry registers the whole component library β as an app on the JSON renderer does. Compression is computed for the whole entry; package attribution is minified bytes by sourcemap.
| Page | JS raw, KB | gzip, KB | brotli, KB | Largest packages (raw, KB) |
|---|---|---|---|---|
| Registration with a captcha | ||||
| React | 579.7 | 184.3 | 157.2 | react-dom 176.8, @reformer/ui-kit 85.4, @reformer/core 72.7, react-day-picker 40.2, date-fns 22.3 |
| Vue | 486.7 | 167.5 | 143.7 | vuetify 265.8, @reformer/core 64.9, @vue/runtime-core 44.2, @vuetify/v0 27.3, @vue/reactivity 17.4 |
| Angular | 636.6 | 178.5 | 151.6 | @angular/core 134.1, @taiga-ui/core 129.1, @reformer/core 74.1, @angular/router 73.8, @reformer/kit-taiga 28.9 |
| Credit application | ||||
| React | 637.7 | 197.6 | 168.1 | react-dom 176.8, @reformer/ui-kit 85.4, @reformer/core 78.8, form: shared code 62.6, react-day-picker 40.2 |
| Vue | 544.8 | 180.8 | 154.5 | vuetify 265.8, @reformer/core 70.9, form: shared code 62.6, @vue/runtime-core 44.2, @vuetify/v0 27.3 |
| Angular | 718.4 | 192.7 | 162.5 | @angular/core 134.1, @taiga-ui/core 129.2, form: shared code 87.5, @reformer/core 81.1, @angular/router 73.8 |
βForm: shared codeβ is the form document, rules, behaviour and fake API, the same on the three stacks. @angular/router in the Angular page's bundle comes with @taiga-ui/core (dialog portals); the page itself does not use the router. React and Vue are built by Vite (Rollup), Angular by the Angular CLI (esbuild).
Implementation code sizeβ
The code an app writes β the sources that end up in the page bundle (by sourcemap): lines without blanks and comments after prettier. βFormβ is shared by the three stacks: the JSON document, rules, behaviour and API. βStack glueβ is each stack's own: the component library registry, the page entry and the app's components (captcha, computed value). The code of the component libraries and renderers is packages and is not counted.
| Stack | Form TS | Form JSON | Stack glue TS | Total lines | Files | Source gzip, B |
|---|---|---|---|---|---|---|
| Registration with a captcha | ||||||
| React | 119 | 85 | 225 | 429 | 8 | 4351 |
| Vue | 119 | 85 | 249 | 453 | 8 | 4328 |
| Angular | 119 | 85 | 286 | 490 | 9 | 4646 |
| Credit application | ||||||
| React | 559 | 1025 | 216 | 1800 | 9 | 10842 |
| Vue | 559 | 1025 | 244 | 1828 | 9 | 10819 |
| Angular | 559 | 1025 | 266 | 1850 | 10 | 11318 |
Methodology and limitationsβ
- The whole stack. A participant is ReFormer, the framework and the component library together: React with @reformer/ui-kit, Vue with Vuetify, Angular with Taiga UI. The libraries draw fields differently β their own markup, styles, pop-up lists β so the numbers are about the stack, not the framework alone, and they do not isolate the cost of the ReFormer renderer.
- One form. The form's JSON document, rules, behaviour, step flow and fake API are shared by the three stacks; the component registry and the page entry differ. The measurement scenarios are those of the form-library report; they follow one DOM contract of the kits and pick list options through the library's driver.
- Parity before measuring. Before measuring, Playwright runs 102 cross-e2e scenarios on the same prod builds: errors, server checks, masks, the wizard, arrays and the canonical payload. Measuring starts only after a green run.
- Remount. Each mount creates a new framework root with the form: createRoot in React, createApp in Vue, createComponent in Angular. The component library is set up once per page (a Vuetify instance, Taiga UI providers). The form is built after the initial values load β compare βmount until readyβ.
- No ranking. Each run is reduced (for example, the median over all keys of a phase); over 10 runs come the median and the interquartile range. There is no significance and no βbestβ mark in a row: with different component libraries a ranking would read as a ranking of frameworks, which this measurement does not show.
- No render counter. In the form-library report renders are counted by the React DevTools hook; Vue and Angular have no such counter, so this report has no renders section.
- JS by CDP. βJS execution (CDP)β and βJS per keyβ come from the ScriptDuration counter of the Chrome DevTools Protocol, and it does not count code in promise reactions (Promise.then). Vue re-renders in Promise.then, so these rows understate Vue several times over and are not comparable with the other stacks; they are left out of the key results. Input and click latencies, Total Blocking Time and layout do not have this error.
- Limitations. CPU throttling in Chromium slows only the main thread β the cost of large bundles is understated. One machine and one browser; absolute numbers from different sessions are not comparable, compare the stacks within the report: in a run they alternate in shuffled order. Neighbouring processes are not sampled on Windows β the βforeign loadβ column is empty.
Sources and the raw report
- report.md β the full report of this run
- forms-benchmark/src/cross β the shared form code of the three stacks
- DOM-CONTRACT.md β the kits' DOM contract and list drivers
- build-frameworks.mjs β prod builds of the stacks' pages
How to reproduce
npm ci
npx playwright install chromium
# @reformer/* packages are consumed from dist
npm run build
# Prod builds of the three stacks' pages, bundle size and code size,
# cross-e2e scenarios on these builds, the runs and the report
npm run bench:frameworks
# Publish the report and this page's data
npm run bench:frameworks:report -- --publish
Machine state in this report
| Form | Calibration, median | Spread p10βp90 | Drift over the session | Foreign load, cores |
|---|---|---|---|---|
| Registration with a captcha | 84.0 ms | 7.1 % | +4.1 % | β |
| Credit application β οΈ | 83.9 ms | 9.1 % | +3.9 % | β |