Skip to main content
← All benchmarks

Forms benchmark Β· November 19, 2026

ReFormer vs Formik, React Hook Form and RJSF β€” real numbers from the browser

Two forms from real specifications β€” a registration form with a captcha and a six-step credit application β€” are implemented on every library, plus ReFormer on a JSON schema and a baseline without a form library. We measure what a user feels: loading, typing, clicks, wizard steps, arrays and remounting.

  • prod build of every page on its own
  • identical UI and behavior: 171 tests before measuring
  • CPU 4x throttling
  • medians over 10 runs (+1 warm-up)
  • exact Mann–Whitney + Holm, p < 0.05
  • a difference below the A/A noise is no difference
Machine
Apple M1, 8 threads, 16 GB
Browser
chromium 143.0.7499.4, headless
Run
November 19, 2026
Build
git 3a1ec926, Node v24.2.0
  • ReFormer core@reformer/core 6.0.0 + @reformer/cdk
  • ReFormer JSON@reformer/renderer-json 6.0.0
  • Formikformik 2.4.9 + yup 1.7.1
  • RHFreact-hook-form 7.91.0 + zod 4.6.7
  • RJSF@rjsf/core 6.10.1 + @rjsf/validator-ajv8 6.10.1
  • baselinereact 19.2.1, no form library

Memory and DOM over time​

JS heap, DOM nodes and event listeners over the whole form scenario β€” one line per participant. Phases are aligned: a phase measurement window is a band as wide as the slowest participant, and between the bands is a gap without measurement (pauses, checks, garbage collection). Hover a chart or press ←/β†’ β€” the tooltip shows every participant’s values at that moment.

  • hover a name to highlight its line
JS heap, MB
Loading the chart…
DOM nodes
Loading the chart…
Event listeners
Loading the chart…

Key results​

The score over every row of the report β€” both forms, all phases and metrics: in how many rows ReFormer core is significantly faster than a competitor, in how many it is slower, and where the difference is not proven.

vs Formik165 rows
78 β€” ReFormer core significantly faster
  • faster: 78
  • not proven: 80
  • slower: 7
vs RHF165 rows
45 β€” ReFormer core significantly faster
  • faster: 45
  • not proven: 109
  • slower: 11
vs RJSF165 rows
82 β€” ReFormer core significantly faster
  • faster: 82
  • not proven: 82
  • slower: 1

Key metrics per form

  • ReFormer core
  • ReFormer JSON
  • Formik
  • RHF
  • RJSF
  • baseline β€” the same markup without a form library
  • spread across runs (q25–q75)
  • β–² / β–Ό β€” significantly worse / better than ReFormer core; no mark β€” the difference is not proven

ReFormer core is the best in 7 of 9 key metrics of this form. Lower is better.

Cold loadForm ready (from navigation start), ms
ReFormer core104Γ—1.00
ReFormer JSON115Γ—1.11
Formik147Γ—1.41β–²
RHF117Γ—1.13β–²
RJSF143Γ—1.38β–²
baseline86.6
Cold loadJS execution (CDP ScriptDuration), ms
ReFormer core67.8Γ—1.00
ReFormer JSON76.8Γ—1.13β–²
Formik115Γ—1.69β–²
RHF78.6Γ—1.16β–²
RJSF105Γ—1.55β–²
baseline47.8
Typing before the first submit (username, email)Key β†’ end of processing (median), ms
ReFormer core3.55Γ—1.00
ReFormer JSON3.65Γ—1.03
Formik6.70Γ—1.89β–²
RHF3.63Γ—1.02
RJSF5.10Γ—1.44β–²
baseline3.45
Typing after submit β€” live validation (password, name, phone)Key β†’ end of processing (median), ms
ReFormer core4.07Γ—1.00
ReFormer JSON4.20Γ—1.03
Formik6.03Γ—1.48β–²
RHF4.35Γ—1.07
RJSF5.40Γ—1.33β–²
baseline3.40
Typing after submit β€” live validation (password, name, phone)Key β†’ end of processing (p95 of a run), ms
ReFormer core6.16Γ—1.00
ReFormer JSON6.31Γ—1.03
Formik7.62Γ—1.24β–²
RHF6.34Γ—1.03
RJSF6.89Γ—1.12β–²
baseline4.27
Typing after submit β€” live validation (password, name, phone)JS per key (CDP), ms
ReFormer core1.32Γ—1.00
ReFormer JSON1.50Γ—1.14
Formik3.37Γ—2.56β–²
RHF1.36Γ—1.03
RJSF2.75Γ—2.09β–²
baseline0.66
Submit with errors β†’ errors on screenClick β†’ UI settled, ms
ReFormer core16.9Γ—1.35
ReFormer JSON16.9Γ—1.34
Formik12.6Γ—1.00β–Ό
RHF34.0Γ—2.71β–²
RJSF57.9Γ—4.61β–²
Form remountMount: render + commit + effects, ms
ReFormer core2.80Γ—1.47
ReFormer JSON3.45Γ—1.82β–²
Formik1.90Γ—1.00β–Ό
RHF2.92Γ—1.54
RJSF2.75Γ—1.45
baseline1.48
Cold loadJS heap after GC, KB
ReFormer core1867Γ—1.00
ReFormer JSON2104Γ—1.13β–²
Formik1885Γ—1.01β–²
RHF2070Γ—1.11β–²
RJSF2335Γ—1.25β–²
baseline1395

Where ReFormer falls behind​

The report publishes everything, losses included. Below is every row where a competitor is significantly faster than ReFormer core (β–Ό in the full report), from the largest gap to the smallest.

There are 15 such rows out of 165. Who is ahead (a row can have several): RHF β€” 11, Formik β€” 7, RJSF β€” 1.

Registration with a captcha

Phase and metricReFormer coreSignificantly fasterGap
Load by invitation (hydration with a prefill)Hydration: prefill response β†’ readyReFormer core 31.9 msFormik 11.4 msalso RHFΓ—2.81
Submit with errors β†’ errors on screenClick β†’ end of frameReFormer core 22.4 msRHF 10.8 msalso FormikΓ—2.07
Typing the captcha with a server checkTyping β†’ UI settled (incl. 300 ms debounce and 20 ms network)ReFormer core 771 msRJSF 454 msΓ—1.70
Form remountMount: render + commit + effectsReFormer core 2.80 msFormik 1.90 msΓ—1.47
Submit with errors β†’ errors on screenClick β†’ UI settledReFormer core 16.9 msFormik 12.6 msΓ—1.35
Submit with errors β†’ errors on screenJS execution (CDP)ReFormer core 12.6 msFormik 10.3 msΓ—1.22
Typing the captcha with a server checkKey β†’ end of processing (median)ReFormer core 5.58 msRHF 4.65 msΓ—1.20
Load by invitation (hydration with a prefill)Form ready (from navigation start)ReFormer core 141 msRHF 121 msΓ—1.17
Taken username: typing β†’ server errorKey β†’ end of processing (median)ReFormer core 4.80 msRHF 4.15 msΓ—1.16

Credit application

Phase and metricReFormer coreSignificantly fasterGap
Submitting the applicationClick β†’ UI settledReFormer core 52.1 msFormik 33.6 msalso RHFΓ—1.55
Form remountMount: render + commit + effectsReFormer core 3.85 msFormik 2.50 msalso RHFΓ—1.54
Property array: switch on (first row)JS execution (CDP)ReFormer core 8.37 msRHF 6.75 msΓ—1.24
Property array: switch on (first row)Click β†’ UI settledReFormer core 9.50 msRHF 8.05 msΓ—1.18
Property array: switch on (first row)Click β†’ end of frameReFormer core 15.2 msRHF 13.4 msΓ—1.13
Loading a saved application (hydration with data)DOM nodesReFormer core 146 RHF 145 Γ—1.01

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. Γ—1.44 means 1.44 times worse than the best in the row; the best is in bold. Lower is better.

Summary by phase: how many times slower than ReFormer coreGeometric mean of the median ratios over the phase metrics: Γ—1.34 β€” 34 % slower on average, Γ—0.80 β€” 20 % faster. Under the number β€” how many metrics are significantly worse (β–²) and better (β–Ό) out of all comparable ones. Colour only when the difference is above 5 % and backed by significance. Hover a cell for the per-metric breakdown; Enter or a click on a phase opens its table.
← participant faster than ReFormer coreReFormer core faster β†’
  • grey β€” the difference is below 5 % or not proven by significance
  • baseline β€” reference without a form library, significance is not tested
Ratio to ReFormer core by phase: registration with a captcha
PhaseReFormer JSONFormikRHFRJSFbaselinereference
Γ—1.09β–²2 β–Ό0 Β· 5Γ—1.26β–²4 β–Ό0 Β· 5Γ—1.10β–²4 β–Ό0 Β· 5Γ—1.28β–²4 β–Ό0 Β· 5Γ—0.83of 5
Γ—1.22β–²5 β–Ό0 Β· 6Γ—1.07β–²4 β–Ό1 Β· 6Γ—0.88β–²3 β–Ό2 Β· 6Γ—1.22β–²4 β–Ό0 Β· 6β€”
Γ—1.03β–²0 β–Ό0 Β· 6Γ—1.75β–²3 β–Ό0 Β· 6Γ—1.02β–²0 β–Ό0 Β· 6Γ—1.40β–²3 β–Ό0 Β· 6Γ—0.97of 6
Γ—1.00β–²0 β–Ό0 Β· 4Γ—0.84β–²0 β–Ό3 Β· 4Γ—0.93β–²1 β–Ό1 Β· 4Γ—2.56β–²3 β–Ό0 Β· 4β€”
Γ—1.04β–²0 β–Ό0 Β· 6Γ—1.38β–²4 β–Ό0 Β· 6Γ—1.04β–²1 β–Ό0 Β· 6Γ—1.26β–²4 β–Ό0 Β· 6Γ—0.78of 6
Γ—1.00β–²0 β–Ό0 Β· 3Γ—1.31β–²2 β–Ό0 Β· 3Γ—0.87β–²0 β–Ό1 Β· 3Γ—1.22β–²1 β–Ό0 Β· 3β€”
Γ—1.05β–²0 β–Ό0 Β· 3Γ—1.42β–²2 β–Ό0 Β· 3Γ—0.98β–²0 β–Ό0 Β· 3Γ—1.34β–²2 β–Ό0 Β· 3β€”
Γ—1.11β–²0 β–Ό0 Β· 4Γ—1.18β–²2 β–Ό0 Β· 4Γ—0.77β–²1 β–Ό0 Β· 4Γ—0.96β–²1 β–Ό0 Β· 4β€”
Γ—1.04β–²0 β–Ό0 Β· 3Γ—1.14β–²1 β–Ό0 Β· 3Γ—0.92β–²0 β–Ό1 Β· 3Γ—0.93β–²1 β–Ό1 Β· 3β€”
Γ—1.06β–²0 β–Ό0 Β· 4Γ—1.33β–²2 β–Ό0 Β· 4Γ—0.81β–²0 β–Ό0 Β· 4Γ—1.26β–²0 β–Ό0 Β· 4β€”
Γ—1.07β–²0 β–Ό0 Β· 4Γ—1.06β–²1 β–Ό0 Β· 4Γ—1.21β–²0 β–Ό0 Β· 4Γ—1.18β–²0 β–Ό0 Β· 4β€”
Γ—1.12β–²1 β–Ό0 Β· 3Γ—1.09β–²1 β–Ό1 Β· 3Γ—0.98β–²0 β–Ό0 Β· 3Γ—0.99β–²0 β–Ό0 Β· 3Γ—0.78of 3
Cold loadReFormer core is the best in 6 of 6
MetricReFormer coreReFormer JSONFormikRHFRJSFbaseline
Form ready (from navigation start), ms104 Γ—1.00103–113115 Γ—1.11112–120147 Γ—1.41 β–²146–148117 Γ—1.13 β–²117–120143 Γ—1.38 β–²143–14486.684.2–92.9
First Contentful Paint, ms148 Γ—1.00148–151160 Γ—1.08157–167196 Γ—1.32 β–²192–196164 Γ—1.11 β–²164–167188 Γ—1.27 β–²185–192132128–135
JS execution (CDP ScriptDuration), ms67.8 Γ—1.0067.4–68.576.8 Γ—1.13 β–²76.3–77.3115 Γ—1.69 β–²114–11578.6 Γ—1.16 β–²77.9–79.2105 Γ—1.55 β–²104–10547.847.1–48.6
Total Blocking Time, ms0.000.00–0.000.000.00–0.0037.036.3–37.00.000.00–0.0024.023.3–24.80.000.00–0.00
JS heap after GC, KB1867 Γ—1.001867–18672104 Γ—1.13 β–²2104–21041885 Γ—1.01 β–²1885–18852070 Γ—1.11 β–²2070–20702335 Γ—1.25 β–²2334–233513951395–1398
DOM nodes102 Γ—1.00102–102102 Γ—1.00102–102102 Γ—1.00102–102102 Γ—1.00102–102102 Γ—1.00102–102102102–102
Load by invitation (hydration with a prefill)ReFormer core is the best in 5 of 7
MetricReFormer coreReFormer JSONFormikRHFRJSFbaseline
Form ready (from navigation start), ms141 Γ—1.17141–143147 Γ—1.22 β–²146–149201 Γ—1.67 β–²198–205121 Γ—1.00 β–Ό120–127179 Γ—1.48 β–²178–181β€”
First Contentful Paint, ms120 Γ—1.00116–123176 Γ—1.47 β–²172–184196 Γ—1.63 β–²192–196136 Γ—1.13 β–²133–136156 Γ—1.30 β–²152–159β€”
Hydration: prefill response β†’ ready, ms31.9 Γ—2.8131.8–32.254.0 Γ—4.75 β–²53.7–54.811.4 Γ—1.00 β–Ό9.97–15.412.1 Γ—1.06 β–Ό11.9–19.932.5 Γ—2.8632.3–32.9β€”
JS execution (CDP ScriptDuration), ms71.0 Γ—1.0070.4–72.078.9 Γ—1.11 β–²78.5–79.8121 Γ—1.71 β–²120–12281.0 Γ—1.14 β–²79.5–81.3109 Γ—1.53 β–²108–109β€”
Total Blocking Time, ms0.000.00–0.000.000.00–0.0037.537.0–38.00.000.00–0.0025.024.3–25.0β€”
JS heap after GC, KB1819 Γ—1.001815–18202042 Γ—1.12 β–²2040–20441953 Γ—1.07 β–²1953–19532028 Γ—1.11 β–²2027–20282284 Γ—1.26 β–²2284–2284β€”
DOM nodes104 Γ—1.00104–104104 Γ—1.00104–104104 Γ—1.00104–104104 Γ—1.00104–104104 Γ—1.00104–104β€”

Spread above 15 % (CV): Hydration: prefill response β†’ ready.

Typing before the first submit (username, email)ReFormer core is the best in 6 of 7
MetricReFormer coreReFormer JSONFormikRHFRJSFbaseline
Key β†’ end of processing (median), ms3.55 Γ—1.003.50–3.603.65 Γ—1.033.65–3.696.70 Γ—1.89 β–²6.58–6.793.63 Γ—1.023.44–3.655.10 Γ—1.44 β–²5.06–5.173.453.32–3.49
Key β†’ end of processing (p95 of a run), ms4.29 Γ—1.004.21–4.394.50 Γ—1.054.41–4.538.85 Γ—2.068.68–9.094.54 Γ—1.064.40–4.676.21 Γ—1.456.15–6.354.414.34–4.63
Key β†’ end of frame (median), ms4.18 Γ—1.004.10–4.284.25 Γ—1.024.13–4.307.32 Γ—1.75 β–²7.30–7.404.20 Γ—1.014.11–4.285.57 Γ—1.34 β–²5.50–5.674.033.90–4.15
JS per key (CDP), ms1.07 Γ—1.011.01–1.121.07 Γ—1.011.01–1.124.43 Γ—4.16 β–²4.41–4.481.07 Γ—1.000.98–1.122.67 Γ—2.50 β–²2.64–2.710.820.75–0.88
Layout + style per key, ms0.46 Γ—1.000.42–0.490.48 Γ—1.060.41–0.550.47 Γ—1.020.44–0.520.46 Γ—1.020.40–0.500.49 Γ—1.080.45–0.510.510.50–0.55
Events β‰₯ 16 ms (Event Timing)149 Γ—1.00148–150151 Γ—1.01150–151151 Γ—1.01149–152150 Γ—1.01149–151150 Γ—1.01148–151150148–151
Total Blocking Time, ms0.000.00–0.000.000.00–0.000.000.00–0.000.000.00–0.000.000.00–0.000.000.00–0.00

Spread above 15 % (CV): Key β†’ end of processing (p95 of a run); Layout + style per key.

API requests during the phase differ (part of the work moved to another phase): ReFormer core β€” none; ReFormer JSON β€” none; Formik β€” check-email Γ—1, check-username Γ—1; RHF β€” none; RJSF β€” none.

Submit with errors β†’ errors on screenReFormer core is the best in 0 of 4
MetricReFormer coreReFormer JSONFormikRHFRJSFbaseline
Click β†’ end of frame, ms22.4 Γ—2.0722.1–22.622.6 Γ—2.0922.0–22.818.0 Γ—1.67 β–Ό17.6–18.410.8 Γ—1.00 β–Ό10.2–14.964.0 Γ—5.92 β–²63.3–64.8β€”
Click β†’ UI settled, ms16.9 Γ—1.3516.5–17.316.9 Γ—1.3416.6–17.212.6 Γ—1.00 β–Ό12.3–12.834.0 Γ—2.71 β–²33.7–34.357.9 Γ—4.61 β–²57.5–58.7β€”
JS execution (CDP), ms12.6 Γ—1.2311.7–12.812.1 Γ—1.1911.5–12.810.3 Γ—1.01 β–Ό9.13–10.510.2 Γ—1.009.26–10.856.5 Γ—5.52 β–²54.8–56.8β€”
Layout + style, ms2.58 Γ—1.032.44–2.632.71 Γ—1.082.34–3.032.62 Γ—1.052.37–2.702.50 Γ—1.002.24–2.802.52 Γ—1.012.30–3.02β€”

Spread above 15 % (CV): Click β†’ end of frame; Layout + style.

API requests during the phase differ (part of the work moved to another phase): ReFormer core β€” check-email Γ—1, check-username Γ—1; ReFormer JSON β€” check-email Γ—1, check-username Γ—1; Formik β€” none; RHF β€” check-email Γ—1, check-username Γ—1; RJSF β€” check-email Γ—1, check-username Γ—1.

By this point the name and email are filled in and need a server check. Formik checks from the first keystroke, so it already has the server responses cached and the submit does not wait for them. ReFormer, RHF and RJSF ask the server for the first time on submit. RHF shows the errors β€” synchronous ones included β€” only after its response (20 ms). ReFormer and RJSF show the synchronous errors at once, and the server response (the name and email are free) does not change the DOM: with ReFormer the phase settles before the response, with RJSF its length is set by its own rendering of the errors. β€œClick β†’ end of frame” in this phase does not include the server.

Typing after submit β€” live validation (password, name, phone)ReFormer core is the best in 6 of 7
MetricReFormer coreReFormer JSONFormikRHFRJSFbaseline
Key β†’ end of processing (median), ms4.07 Γ—1.004.01–4.204.20 Γ—1.034.13–4.296.03 Γ—1.48 β–²6.00–6.104.35 Γ—1.074.26–4.455.40 Γ—1.33 β–²5.30–5.473.403.30–3.49
Key β†’ end of processing (p95 of a run), ms6.16 Γ—1.006.03–6.306.31 Γ—1.035.95–6.417.62 Γ—1.24 β–²7.52–7.786.34 Γ—1.036.14–6.506.89 Γ—1.12 β–²6.73–7.104.274.09–4.32
Key β†’ end of frame (median), ms4.68 Γ—1.004.61–4.784.85 Γ—1.044.72–4.906.70 Γ—1.43 β–²6.61–6.805.00 Γ—1.07 β–²4.90–5.005.97 Γ—1.28 β–²5.90–6.073.923.86–4.00
JS per key (CDP), ms1.32 Γ—1.001.25–1.391.50 Γ—1.141.45–1.573.37 Γ—2.56 β–²3.34–3.441.36 Γ—1.031.30–1.442.75 Γ—2.09 β–²2.69–2.760.660.64–0.72
Layout + style per key, ms0.51 Γ—1.000.49–0.540.53 Γ—1.030.47–0.550.52 Γ—1.020.48–0.580.52 Γ—1.010.50–0.560.51 Γ—1.010.49–0.530.480.46–0.50
Events β‰₯ 16 ms (Event Timing)176 Γ—1.01175–177176 Γ—1.01174–177176 Γ—1.01175–178176 Γ—1.01176–178175 Γ—1.00174–177175174–177
Total Blocking Time, ms0.000.00–0.000.000.00–0.000.000.00–0.000.000.00–0.000.000.00–0.000.000.00–0.00

Spread above 15 % (CV): Layout + style per key.

Taken username: typing β†’ server errorReFormer core is the best in 0 of 3
MetricReFormer coreReFormer JSONFormikRHFRJSFbaseline
Typing β†’ UI settled (incl. 300 ms debounce and 20 ms network), ms947 Γ—1.01938–956948 Γ—1.01940–954957 Γ—1.02950–958940 Γ—1.00935–946949 Γ—1.01939–950β€”
Key β†’ end of processing (median), ms4.80 Γ—1.164.47–4.974.75 Γ—1.144.70–4.916.00 Γ—1.45 β–²5.91–6.174.15 Γ—1.00 β–Ό4.10–4.205.38 Γ—1.305.21–5.44β€”
JS execution over the phase (CDP), ms14.4 Γ—1.3213.7–14.714.5 Γ—1.3313.9–16.025.8 Γ—2.35 β–²25.1–26.110.9 Γ—1.0010.0–11.723.1 Γ—2.11 β–²22.6–24.6β€”

β€œUI settled” is the last DOM change. Formik and RHF run the synchronous rules together with the server check and clear the error only on its response; RJSF and ReFormer clear the synchronous error at once. If the DOM does not change on the server response, the phase settles earlier.

Fixing the username: typing β†’ error clearedReFormer core is the best in 0 of 3
MetricReFormer coreReFormer JSONFormikRHFRJSFbaseline
Typing β†’ UI settled (incl. 300 ms debounce and 20 ms network), ms885 Γ—1.01880–891881 Γ—1.00876–891898 Γ—1.02887–905880 Γ—1.00877–888896 Γ—1.02885–903β€”
Key β†’ end of processing (median), ms4.30 Γ—1.024.20–4.404.30 Γ—1.023.95–4.405.60 Γ—1.33 β–²5.50–5.784.20 Γ—1.004.03–4.285.20 Γ—1.24 β–²5.00–5.35β€”
JS execution over the phase (CDP), ms13.0 Γ—1.0212.4–15.514.9 Γ—1.1713.4–16.028.3 Γ—2.21 β–²28.2–28.412.8 Γ—1.0011.8–12.925.4 Γ—1.99 β–²24.6–26.3β€”

β€œUI settled” is the last DOM change. Formik and RHF run the synchronous rules together with the server check and clear the error only on its response; RJSF and ReFormer clear the synchronous error at once. If the DOM does not change on the server response, the phase settles earlier.

Captcha refreshReFormer core is the best in 1 of 4
MetricReFormer coreReFormer JSONFormikRHFRJSFbaseline
Click β†’ end of frame, ms8.10 Γ—1.104.25–12.613.2 Γ—1.796.28–16.210.4 Γ—1.417.80–15.57.35 Γ—1.004.48–12.210.8 Γ—1.464.58–14.8β€”
Click β†’ UI settled, ms23.9 Γ—1.0023.8–24.124.6 Γ—1.0324.1–24.830.3 Γ—1.26 β–²29.9–30.425.3 Γ—1.06 β–²25.2–25.526.0 Γ—1.09 β–²25.8–26.2β€”
JS execution (CDP), ms1.81 Γ—1.051.70–2.311.73 Γ—1.001.42–1.925.21 Γ—3.02 β–²5.06–5.601.78 Γ—1.031.06–2.522.49 Γ—1.442.35–3.05β€”
Layout + style, ms0.19 Γ—2.710.08–0.700.18 Γ—2.640.08–0.630.08 Γ—1.140.08–0.440.07 Γ—1.000.07–0.180.08 Γ—1.140.08–0.19β€”

Spread above 15 % (CV): Click β†’ end of frame; JS execution (CDP); Layout + style.

Typing the captcha with a server checkReFormer core is the best in 0 of 3
MetricReFormer coreReFormer JSONFormikRHFRJSFbaseline
Typing β†’ UI settled (incl. 300 ms debounce and 20 ms network), ms771 Γ—1.70769–775772 Γ—1.70770–776776 Γ—1.71769–781769 Γ—1.69765–775454 Γ—1.00 β–Ό449–457β€”
Key β†’ end of processing (median), ms5.58 Γ—1.205.26–5.695.50 Γ—1.185.35–5.645.82 Γ—1.255.56–5.904.65 Γ—1.00 β–Ό4.50–4.815.53 Γ—1.195.45–5.69β€”
JS execution over the phase (CDP), ms14.0 Γ—1.0513.3–14.816.0 Γ—1.2015.2–17.019.8 Γ—1.50 β–²19.2–20.913.3 Γ—1.0012.9–14.019.1 Γ—1.44 β–²17.2–19.9β€”

β€œUI settled” is the last DOM change. Formik and RHF run the synchronous rules together with the server check and clear the error only on its response; RJSF and ReFormer clear the synchronous error at once. If the DOM does not change on the server response, the phase settles earlier.

Terms checkboxReFormer core is the best in 0 of 4
MetricReFormer coreReFormer JSONFormikRHFRJSFbaseline
Click β†’ end of frame, ms12.7 Γ—1.237.05–13.811.2 Γ—1.096.97–13.515.8 Γ—1.5410.3–17.410.3 Γ—1.007.00–11.812.1 Γ—1.187.75–15.2β€”
Click β†’ UI settled, ms4.70 Γ—1.084.35–4.804.35 Γ—1.004.22–4.507.25 Γ—1.67 β–²7.13–7.784.80 Γ—1.104.58–4.975.55 Γ—1.285.35–5.78β€”
JS execution (CDP), ms3.12 Γ—1.102.50–3.402.84 Γ—1.002.66–3.295.47 Γ—1.93 β–²5.16–6.082.97 Γ—1.052.75–3.663.84 Γ—1.353.65–4.11β€”
Layout + style, ms0.18 Γ—1.850.10–0.620.32 Γ—3.150.11–0.660.17 Γ—1.700.10–0.680.10 Γ—1.000.09–0.250.34 Γ—3.400.10–0.63β€”

Spread above 15 % (CV): Click β†’ end of frame; JS execution (CDP); Layout + style.

Successful submitReFormer core is the best in 1 of 4
MetricReFormer coreReFormer JSONFormikRHFRJSFbaseline
Click β†’ end of frame, ms9.40 Γ—1.006.53–14.611.2 Γ—1.196.30–12.99.70 Γ—1.038.18–13.69.40 Γ—1.007.00–15.210.9 Γ—1.168.35–12.9β€”
Click β†’ UI settled, ms27.3 Γ—1.0327.2–27.827.1 Γ—1.0226.3–27.328.6 Γ—1.0828.1–28.826.5 Γ—1.0026.1–26.627.9 Γ—1.0527.5–28.0β€”
JS execution (CDP), ms4.03 Γ—1.133.59–4.593.55 Γ—1.003.11–4.065.79 Γ—1.63 β–²5.41–6.195.92 Γ—1.674.27–6.495.75 Γ—1.624.61–5.88β€”
Layout + style, ms0.50 Γ—1.230.26–0.810.63 Γ—1.540.29–0.830.41 Γ—1.000.17–0.780.74 Γ—1.840.38–0.860.56 Γ—1.400.24–0.86β€”

Spread above 15 % (CV): Click β†’ end of frame; JS execution (CDP); Layout + style.

Form remountReFormer core is the best in 1 of 6
MetricReFormer coreReFormer JSONFormikRHFRJSFbaseline
Mount: render + commit + effects, ms2.80 Γ—1.472.80–2.883.45 Γ—1.82 β–²3.40–3.521.90 Γ—1.00 β–Ό1.81–1.942.92 Γ—1.542.85–3.002.75 Γ—1.452.61–2.841.481.27–1.55
Mount: until the frame with the ready form, ms13.3 Γ—1.0510.8–14.713.2 Γ—1.0410.6–14.613.3 Γ—1.0410.8–14.512.7 Γ—1.0011.0–14.613.1 Γ—1.0311.5–14.813.211.6–14.6
JS per mount + unmount cycle (CDP), ms0.53 Γ—1.060.50–0.630.61 Γ—1.220.53–0.641.01 Γ—2.02 β–²0.95–1.060.50 Γ—1.000.42–0.520.53 Γ—1.050.51–0.570.470.44–0.52
Objects retained after unmount, KB/cycle0.040.04–0.040.040.04–0.040.040.03–0.040.030.03–0.040.040.03–0.040.030.03–0.03
Heap growth per remount after warm-up (incl. JIT code), KB/cycle1.601.60–1.602.562.53–2.600.770.77–0.773.033.03–3.054.514.51–4.510.960.96–0.96
DOM node growth per remount0.00.0–0.00.00.0–0.00.00.0–0.00.00.0–0.00.00.0–0.00.00.0–0.0

Spread above 15 % (CV): Mount: until the frame with the ready form; JS per mount + unmount cycle (CDP).

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) for every participant, even the empty page. β€œ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. β€œHeap growth” is the heap slope after warm-up together with JIT code: the engine keeps optimizing code, which is not a leak.

React renders​

Components rendered during the phase (commits in parentheses); for typing β€” per key, for remounting β€” per mount. Counted by a DevTools hook (the PerformedWork flag, like React DevTools) in a separate pass at CPU 1x.

PhaseReFormer coreReFormer JSONFormikRHFRJSFbaseline
Cold load31 (1)61 (1)59 (2)58 (2)90 (1)21 (1)
Load by invitation (hydration with a prefill)34 (2)63 (2)118 (4)33 (3)92 (2)β€”
Typing before the first submit (username, email)0.0/key (0)0.0/key (0)53.2/key (63)0.0/key (0)23.0/key (32)0.0/key (0)
Submit with errors β†’ errors on screen18 (2)18 (2)135 (5)24 (1)89 (3)β€”
Typing after submit β€” live validation (password, name, phone)1.1/key (14)1.1/key (14)58.3/key (82)1.3/key (17)22.7/key (38)0.0/key (0)
Taken username: typing β†’ server error1.9/key (5)1.9/key (5)54.0/key (16)0.8/key (2)23.6/key (9)β€”
Fixing the username: typing β†’ error cleared1.6/key (6)1.6/key (6)46.6/key (19)0.5/key (2)23.5/key (11)β€”
Captcha refresh0 (0)0 (0)81 (3)0 (0)14 (1)β€”
Typing the captcha with a server check6.0/key (12)7.0/key (12)54.0/key (12)4.0/key (8)22.0/key (6)β€”
Terms checkbox3 (1)3 (1)108 (4)3 (1)22 (1)β€”
Successful submit29 (1)4 (1)136 (5)54 (2)86 (3)β€”
Form remount31/mount61/mount59/mount58/mount90/mount21/mount

Bundle size​

A separate production build of every page, the static closure of the entry. The main number is gzip over the baseline: how much the form library and the form code add to the same page without a library. Compression is measured on the whole entry; package attribution is minified bytes from the sourcemap.

Registration with a captchagzip over baseline, KB
ReFormer core28.9
ReFormer JSON36.7
Formik24.5
RHF39.2
RJSF129.5
Credit applicationgzip over baseline, KB
ReFormer core38.1
ReFormer JSON46.3
Formik32.8
RHF49.5
RJSF133.2
PageJS raw, KBgzip, KBbrotli, KBgzip over baseline, KBLargest packages (raw, KB)
Registration with a captcha
ReFormer core288.492.880.628.9@reformer/core 70.7, bench: shared 12.6, @reformer/cdk 7.8, @preact/signals-core 4.6, implementation 3.6
ReFormer JSON310.9100.687.236.7@reformer/core 70.8, bench: shared 11.9, @reformer/renderer-json 11.4, @reformer/renderer-react 10.3, @reformer/cdk 7.8
Formik274.788.576.824.5yup 30.7, lodash-es 14.6, formik 13.5, bench: shared 12.6, implementation 3.8
RHF326.8103.289.539.2zod 79.4, react-hook-form 38.7, bench: shared 12.6, @hookform/resolvers 3.3, implementation 3.3
RJSF591.3193.5165.4129.5ajv 103.6, markdown-to-jsx 77.4, @rjsf/core 67.7, @rjsf/utils 48.9, fast-uri 31.1
baseline201.163.955.30.0bench: shared 11.0, implementation 1.4
Credit application
ReFormer core338.8106.091.538.1@reformer/core 77.8, bench: shared 39.7, implementation 16.3, @reformer/cdk 11.2, @preact/signals-core 4.6
ReFormer JSON370.1114.398.046.3@reformer/core 77.3, bench: shared 38.5, implementation 30.7, @reformer/renderer-json 11.5, @reformer/renderer-react 10.4
Formik326.5100.887.532.8bench: shared 40.5, yup 34.4, formik 19.6, implementation 17.7, lodash-es 14.6
RHF381.9117.4101.749.5zod 85.9, react-hook-form 45.0, bench: shared 41.2, implementation 17.0, @hookform/resolvers 3.3
RJSF620.4201.2172.0133.2ajv 103.6, markdown-to-jsx 77.4, @rjsf/core 67.7, @rjsf/utils 48.9, bench: shared 43.3
baseline216.868.058.70.0bench: shared 23.6, implementation 4.5

Implementation code size​

Implementation sources that end up in the page bundle (from the sourcemap): lines without blanks and comments after prettier. β€œForm” is the files of the form folder, β€œglue” is the rest of the library integration code (field adapters, the RJSF theme, shared ReFormer rules and behavior). The shared benchmark layer is identical for everyone and is not counted. The credit JSON document of ReFormer JSON was generated once from shared field metadata; RJSF and ReFormer core build their schemas from the same metadata in code.

ImplementationForm TSForm JSONGlue TSTotal linesFilesSource gzip, B
Registration with a captcha
ReFormer core132014627853040
ReFormer JSON578720534993884
Formik125024336873413
RHF17907225152621
RJSF293046475785630
baseline7300732857
Credit application
ReFormer core39906081007108127
ReFormer JSON76101273918271411716
Formik89002431133109027
RHF9640121108588906
RJSF992046414561111356
baseline3250032522767

Methodology and limitations​

  • Behavior contract. One specification per form; shared UI, fake API and messages for everyone. Competitors are written idiomatically from their official docs, without relying on ReFormer code, with the same optimization budget: no React Compiler and no manual memo beyond what the docs recommend.
  • Conformance before measuring. Before measuring, Playwright runs 171 tests: conformance of every implementation β€” errors and the quiet phase, server checks, masks, the wizard, arrays, the canonical payload β€” and the calibration of the render counter. Measuring starts only after a green run.
  • Statistics. Each run is reduced first (for example, the median over all keys of a phase); over 10 runs β€” the median and IQR. Significance against ReFormer core is an exact Mann–Whitney U test with the Holm correction over all comparisons of the report, p < 0.05; a difference below the A/A noise (two identical builds of ReFormer core) is not counted as a difference.
  • Calibration and background load. At the start and the end of every run there is a calibration JS workload (machine speed drift) and a snapshot of neighbouring processes and the GPU; with BENCH_REQUIRE_IDLE=1 measuring does not start on a busy machine.
  • Machine drift. Absolute numbers from different sessions are not comparable even on the same machine: the baseline (the same code) differed by up to 1.6Γ— between runs on one day. Compare ratios within one report: participants alternate in a shuffled order within a run, so drift affects everyone equally.
  • Limitations. CPU throttling in Chromium slows down only the main thread, so the cost of large bundles is understated. One machine and one browser. β€œKey β†’ end of frame” is quantized by the frame rate; β€œkey β†’ end of processing” and JS per key are more precise.

Sources and the raw report

How to reproduce

npm ci
npx playwright install chromium
# @reformer/* packages are consumed from dist β€” build them in order
for pkg in @reformer/core @reformer/cdk @reformer/renderer-react @reformer/renderer-json; do
npm run build:stackblitz -w "$pkg"
done
# Is the machine idle: neighbouring processes, GPU
npm run bench:idle-check
# Build the pages, conformance, runs and the report; refuses to start on a busy machine
BENCH_REQUIRE_IDLE=1 npm run bench

Machine state in this report

FormCalibration, medianSpread p10–p90Drift over the sessionForeign load, coresβ€œDirty” runs
Registration with a captcha47.2 ms3.8 %0.0 %0.19 / max 1.212 / 70
Credit application46.9 ms3.2 %+0.1 %0.13 / max 0.690 / 70