.md

Benchmarks

How Attaform holds up across the Vue form-library field on the same demanding forms, measured in a real browser. Bundle size, supply-chain health, and per-scenario runtime, with every number traced to the run that produced it.

Category
Comparison
Method
Playwright, real Chromium
Provenance
committed results.json

This page is an honest scoreboard. The numbers come from apps/bench-arena, a self-contained harness that drives every library through identical scenarios in real Chromium via Playwright, then writes one provenance-stamped results.json that this page renders directly. Nothing is hand-entered. Where Attaform leads, the run says so; where it pays a cost, the run says that too. Both ship from the same green run.

How to read this

A fair cross-library comparison has to account for the fact that these libraries do different amounts of work. The harness handles that with a few rules:

  • Layers are the fairness axis. Form-state libraries (Attaform among them) own reactive values, validation, and input binding. Validation-only libraries own validation against state you wire yourself. A batteries-included library renders its own inputs. Each row is labeled with its layer, so a validation-only engine mounting faster than a full form-state library is read as owning less, not as winning.
  • The DOM is held constant. Every headless library drives the same bare <input> markup over the same field count and the same schema, so a runtime number reflects the library's own machinery, not its choice of components.
  • Every library runs in its fastest idiomatic configuration. Debounces are neutralized, validation triggers are normalized, and array and union primitives use each library's native fast path. Attaform is measured on its shipping default, strict mode, never a relaxed setting.
  • Real builds, pinned validators. Attaform is consumed as its published dist, the same artifact an installer gets, minified and code-split in the same build as every other library. Zod v3 is pinned across the Zod-capable cohort, with one deliberate exception below.
  • Two libraries run more than one row. Attaform appears twice in the runtime and capability tables, as Attaform (Zod 3) through attaform/zod-v3 and Attaform (Zod 4) through attaform/zod-v4. The two adapters are first-class peers, so the arena measures both rather than picking a favourite, and the rows are identical in every respect but the validator. Regle appears twice for the same reason, Regle (schema) over Zod and Regle (rules) over its own validators. The bundle table carries one Attaform row, built on the pinned Zod v3.
  • Numbers normalize two ways. A ratio compares each library to Attaform at the same size. A slope compares a library to itself at the scenario's smallest size, so the shape of growth survives a change of machine.

The harness, every adapter, and the scenario generators live in apps/bench-arena. Found a fairer configuration for a library? The adapters are small and the README invites a pull request.

What it costs to adopt

Before any runtime number, three figures decide whether a library is worth reaching for: what it can express, what it adds to your bundle, and how its supply chain scores.

Capability coverage

What each library expresses as a first-class primitive versus composes by hand. A gap here becomes honest expressiveness data, never a rigged timing loss: a shape a library cannot express idiomatically is left out of its runtime rows rather than forced into a slow number.

LibraryLayerFlatDeeply nestedDynamic arraysGridDiscriminated unionMassiveWizard
Attaform (Zod 3) Zod 3Form stateNativeNativeNativeNativeNativeNativeNative
Attaform (Zod 4) Zod 4Form stateNativeNativeNativeNativeNativeNativeNative
vee-validate Zod 3Form stateNativeNativeNativeNativeHand-rolledNativeHand-rolled
@tanstack/vue-form Zod 3Form stateNativeNativeNativeNativeHand-rolledNativeHand-rolled
@formisch/vue ValibotForm stateNativeNativeNativeNativeHand-rolledNativeHand-rolled
Regle (schema) Zod 3Validation onlyNativeNativeNativeNativeNativeNativeHand-rolled
Regle (rules) native rulesValidation onlyNativeNativeNativeNativeHand-rolledNativeHand-rolled
FormKit Zod 3Batteries includedNativeNativeNativeNativeHand-rolledNativeHand-rolled
Vuelidate native rulesValidation onlyNativeNativeHand-rolledHand-rolledHand-rolledNativeHand-rolled

Native: a first-class primitive. Hand-rolled: composed from lower-level pieces. Dash: not expressed, which the runtime tables read as no number, never a slow one.

Source: CI run #34933157779mixed: AMD EPYC 7763 64-Core Processor + AMD EPYC 9V74 80-Core Processor + AMD EPYC 9V45 96-Core ProcessorNode v24.20.02026-09-15

Bundle size

Attaform is the heaviest in the cohort. That is the cost of shipping reactive form state, deep schema binding, and the whole display-state model in one zero-dependency package, and it is the honest price of admission. The figure is what a code-split build executes before the form is interactive; opt-in layers like the v-register directive, undo and redo, and the multi-step wizard live behind separate imports this minimal form never pays for.

LibraryGzippedvs AttaformValidator
@formisch/vue
4.0 kB
0.08×valibot 1.4.2
Vuelidate
5.0 kB
0.1×native validators
vee-validate
24.6 kB
0.51×zod 3.25.76
@tanstack/vue-form
29.9 kB
0.62×zod 3.25.76
Regle
33.1 kB
0.69×zod 3.25.76
FormKit
44.5 kB
0.93×zod 3.25.76
Attaform
48.0 kB +1.4 kB deferred
zod 3.25.76

Each row is the same minimal real form (one text field, one email field, schema-validated, a submit handler) in that library's idiomatic API, with its validator weighed in. Vue is external, since every app ships it once. Builds are code-split the way a real bundler ships them: each figure is the JavaScript that executes before the form is interactive, and code a library defers behind a dynamic import loads on demand instead of on first paint.

Source: CI run #34933157779mixed: AMD EPYC 7763 64-Core Processor + AMD EPYC 9V74 80-Core Processor + AMD EPYC 9V45 96-Core ProcessorNode v24.20.02026-09-15

Supply-chain health

The OpenSSF Scorecard rates a project's adoption of supply-chain practices: branch protection, signed releases, pinned dependencies, CI hardening, and more. For a form library headed into an audited setting, that posture is part of the cost of adoption, so the benchmark stamps each project's current score alongside the size and runtime figures.

LibraryOpenSSF ScorecardAs ofLink
Attaform (Zod 3)7.8 / 102026-09-15 Scorecard
Attaform (Zod 4)7.8 / 102026-09-15 Scorecard
vee-validate3.6 / 102026-09-07 Scorecard
@tanstack/vue-formNot published Repository
@formisch/vueNot published Repository
Regle (schema)5.2 / 102026-09-08 Scorecard
Regle (rules)5.2 / 102026-09-08 Scorecard
FormKitNot published Repository
Vuelidate4.4 / 102026-09-07 Scorecard

The OpenSSF Scorecard rates a project's adoption of supply-chain practices out of 10. An absent score has two meanings, kept distinct here. Not published means the project has not opted into a Scorecard, which is a choice, not a deficiency. Unavailable means the lookup did not complete on this run, a network gap on our side and never a statement about the project. Scores are point-in-time; the linked viewer shows the live result.

Source: CI run #34933157779mixed: AMD EPYC 7763 64-Core Processor + AMD EPYC 9V74 80-Core Processor + AMD EPYC 9V45 96-Core ProcessorNode v24.20.02026-09-15

Typing into a form

Keystroke latency

The headline interaction. A keystroke runs the value write, validation, and the re-render it triggers. On a flat form Attaform clears a 60 fps frame budget with room to spare.

Flat: Keystroke latency

In the leading group of form-state libraries on this run.

LibraryF10F50
@formisch/vue
0.20 ms 0.67×
0.40 ms 0.8×
Vuelidate
0.20 ms 0.67×
0.40 ms 0.8×
Attaform (Zod 4)
0.30 ms
0.40 ms 0.8×
vee-validate
0.30 ms
0.40 ms 0.8×
Regle (rules)
0.30 ms
0.40 ms 0.8×
Attaform (Zod 3)
0.30 ms
0.50 ms
@tanstack/vue-form
0.30 ms
0.50 ms
Regle (schema)
0.30 ms
0.50 ms
FormKit
0.30 ms
0.50 ms
Source: CI run #34933157779mixed: AMD EPYC 7763 64-Core Processor + AMD EPYC 9V74 80-Core Processor + AMD EPYC 9V45 96-Core ProcessorNode v24.20.02026-09-15

At five thousand fields the picture tightens. The harness reports where Attaform lands plainly, and it is a scenario worth a future look.

Massive: Keystroke latency

Near the front of the form-state pack here.

LibraryL2000L5000
Regle (rules)
9.90 ms 0.77×
17.5 ms 0.7×
Vuelidate
10.5 ms 0.81×
18.1 ms 0.73×
@formisch/vue
10.4 ms 0.81×
18.8 ms 0.76×
vee-validate
10.5 ms 0.81×
19.7 ms 0.79×
Attaform (Zod 3)
12.9 ms
24.9 ms
Attaform (Zod 4)
13.2 ms 1.02×
25.1 ms 1.01×
Regle (schema)
18.3 ms 1.42×
40.6 ms 1.63×
@tanstack/vue-form
26.7 ms 2.07×
62.8 ms 2.52×
FormKit
3.80 ms 0.29×
did not finish> 5 min
Source: CI run #34933157779mixed: AMD EPYC 7763 64-Core Processor + AMD EPYC 9V74 80-Core Processor + AMD EPYC 9V45 96-Core ProcessorNode v24.20.02026-09-15

Re-render scope

Editing one cell of a large grid should re-render one field, not the form. Configured optimally, the modern headless cohort all reaches that bound, and there is no lower number to beat.

Grid: Re-render scope per keystroke

One render per keystroke, whatever the form size. That is the design target, and the run holds it.

LibraryN20M8N100M8
Attaform (Zod 3)
1 renders
1 renders
Attaform (Zod 4)
1 renders
1 renders
vee-validate
1 renders
1 renders
@tanstack/vue-form
1 renders
1 renders
@formisch/vue
1 renders
1 renders
Regle (schema)
1 renders
1 renders
Regle (rules)
1 renders
1 renders
Vuelidate
1 renders
1 renders
FormKit
3 DOM mutations
3 DOM mutations

† Reported as DOM mutations, a proxy for a library that owns its inputs rather than binding the shared bare field. Not directly comparable to a Vue render count.

Source: CI run #34933157779mixed: AMD EPYC 7763 64-Core Processor + AMD EPYC 9V74 80-Core Processor + AMD EPYC 9V45 96-Core ProcessorNode v24.20.02026-09-15

Standing up a form

Mounting a large form

Building a two-thousand-field form from scratch is where the form-state libraries separate. Attaform mounts the whole reactive tree, validation wiring included, every value and validation path live before the first paint.

Massive: Mount

Squarely in the form-state pack, neither out front nor at the back.

LibraryL2000
@formisch/vue
87.6 ms 0.6×
Vuelidate
125 ms 0.87×
Attaform (Zod 3)
145 ms
Attaform (Zod 4)
192 ms 1.33×
Regle (schema)
244 ms 1.68×
Regle (rules)
279 ms 1.93×
vee-validate
809 ms 5.59×
@tanstack/vue-form
7930 ms 54.77×
FormKit
13227 ms 91.35×
Source: CI run #34933157779mixed: AMD EPYC 7763 64-Core Processor + AMD EPYC 9V74 80-Core Processor + AMD EPYC 9V45 96-Core ProcessorNode v24.20.02026-09-15

Memory

Retained heap after mount, the library's reactive and validation state at scenario size. Churn is the per-cycle allocation pressure, and leak is the residual across mount and teardown cycles. The sparkline traces retained heap across the measured cycles.

Massive: Retained heap

Among the faster form-state libraries on this shape.

LibraryL2000
@formisch/vue
12373 kB0.96×
churn 75 kB · leak 11 kB
Attaform (Zod 3)
12858 kB
churn 701 kB · leak 60 kB
Vuelidate
14919 kB1.16×
churn 94 kB · leak 7 kB
vee-validate
20389 kB1.59×
churn 457 kB · leak 31 kB
@tanstack/vue-form
22623 kB1.76×
churn 439 kB · leak 1674 kB
Attaform (Zod 4)
22658 kB1.76×
churn 751 kB · leak 89 kB
Regle (schema)
33993 kB2.64×
churn 375 kB · leak 21 kB
Regle (rules)
42045 kB3.27×
churn 299 kB · leak 30 kB
FormKit
385449 kB29.98×
churn 135 kB · leak 32 kB
Source: CI run #34933157779mixed: AMD EPYC 7763 64-Core Processor + AMD EPYC 9V74 80-Core Processor + AMD EPYC 9V45 96-Core ProcessorNode v24.20.02026-09-15

Working the harder shapes

Validation throughput

A full-form validation pass over a massive form, the cost of a submit on the largest shape in the suite.

Massive: Full-form validation

Near the front of the form-state pack here.

LibraryL2000L5000
Vuelidate
0.30 ms 0.17×
0.60 ms 0.21×
Attaform (Zod 4)
1.70 ms 0.94×
2.20 ms 0.76×
@formisch/vue
1.30 ms 0.72×
2.40 ms 0.83×
Attaform (Zod 3)
1.80 ms
2.90 ms
vee-validate
18.1 ms 10.06×
37.0 ms 12.76×
Regle (schema)
29.5 ms 16.39×
86.4 ms 29.79×
Regle (rules)
89.5 ms 49.72×
231 ms 79.76×
@tanstack/vue-form
987 ms 548.39×
did not finish> 5 min
FormKit
383 ms 212.5×
did not finish> 5 min
Source: CI run #34933157779mixed: AMD EPYC 7763 64-Core Processor + AMD EPYC 9V74 80-Core Processor + AMD EPYC 9V45 96-Core ProcessorNode v24.20.02026-09-15

Discriminated unions

Writing into and flipping between variants of a discriminated union. Attaform walks only the active branch, so a variant flip touches the branch in play rather than every alternative.

Discriminated union: Variant flip

Near the front of the form-state pack here.

LibraryDU
Vuelidate
0.50 ms 0.63×
@formisch/vue
0.60 ms 0.75×
@tanstack/vue-form
0.70 ms 0.88×
Attaform (Zod 3)
0.80 ms
Attaform (Zod 4)
0.80 ms
vee-validate
0.80 ms
Regle (schema)
1.00 ms 1.25×
Regle (rules)
1.30 ms 1.63×
FormKit
6.05 ms 7.56×
Source: CI run #34933157779mixed: AMD EPYC 7763 64-Core Processor + AMD EPYC 9V74 80-Core Processor + AMD EPYC 9V45 96-Core ProcessorNode v24.20.02026-09-15

Dynamic arrays

Appending and reordering rows in a growing list. Attaform's array helpers copy the target array before mutating, which keeps reads fast and identity stable but shows up as real cost on a reorder at a hundred rows. It is an honest line on the board.

Dynamic arrays: Array append

Mid-pack among the form-state libraries here.

LibraryN10N100
@formisch/vue
0.70 ms 0.5×
1.30 ms 0.48×
Attaform (Zod 4)
1.30 ms 0.93×
2.50 ms 0.93×
Attaform (Zod 3)
1.40 ms
2.70 ms
Vuelidate
1.10 ms 0.79×
3.10 ms 1.15×
@tanstack/vue-form
1.20 ms 0.86×
3.20 ms 1.19×
vee-validate
2.00 ms 1.43×
9.25 ms 3.43×
Regle (rules)
1.60 ms 1.14×
9.30 ms 3.44×
Regle (schema)
1.80 ms 1.29×
10.4 ms 3.85×
FormKit
4.30 ms 3.07×
10.5 ms 3.89×
Source: CI run #34933157779mixed: AMD EPYC 7763 64-Core Processor + AMD EPYC 9V74 80-Core Processor + AMD EPYC 9V45 96-Core ProcessorNode v24.20.02026-09-15
Dynamic arrays: Array reorder

Holds the middle of the form-state field on this shape.

LibraryN10N100
@formisch/vue
0.70 ms 0.58×
1.30 ms 0.62×
Attaform (Zod 4)
1.10 ms 0.92×
2.00 ms 0.95×
Vuelidate
0.80 ms 0.67×
2.10 ms
Attaform (Zod 3)
1.20 ms
2.10 ms
@tanstack/vue-form
0.70 ms 0.58×
2.50 ms 1.19×
vee-validate
1.00 ms 0.83×
4.30 ms 2.05×
FormKit
1.10 ms 0.92×
4.90 ms 2.33×
Regle (rules)
0.90 ms 0.75×
5.00 ms 2.38×
Regle (schema)
1.00 ms 0.83×
5.60 ms 2.67×
Source: CI run #34933157779mixed: AMD EPYC 7763 64-Core Processor + AMD EPYC 9V74 80-Core Processor + AMD EPYC 9V45 96-Core ProcessorNode v24.20.02026-09-15

Multi-step wizard

Most of the cohort has no wizard primitive and composes a multi-step flow by hand, so this is an expressiveness comparison as much as a timing one. Where a comparable step transition exists, here is its cost; Attaform's useWizard ships the flow as a first-class shape.

Wizard: Step transition

Holds the middle of the form-state field on this shape.

LibraryS4
@formisch/vue
0.10 ms 0.33×
Regle (rules)
0.10 ms 0.33×
Vuelidate
0.10 ms 0.33×
Attaform (Zod 3)
0.30 ms
Attaform (Zod 4)
0.30 ms
@tanstack/vue-form
0.40 ms 1.33×
Regle (schema)
0.80 ms 2.67×
FormKit
2.10 ms
vee-validate
5.40 ms 18×
Source: CI run #34933157779mixed: AMD EPYC 7763 64-Core Processor + AMD EPYC 9V74 80-Core Processor + AMD EPYC 9V45 96-Core ProcessorNode v24.20.02026-09-15

Caveats

The methodology is only as good as what it admits.

  • FormKit owns its inputs. It cannot drive the shared bare field, so its re-render figure is a DOM-mutation proxy, marked in the tables, and its mount and memory figures include its own component tree. It is labeled batteries-included throughout and never placed silently beside bare-input libraries.
  • Heap is Chromium-quantized. usedJSHeapSize reports rounded magnitudes, not byte-exact values, so memory figures show whole kilobytes and the slope across sizes carries more signal than any single number.
  • Every cell shares one time budget. Each measured cell gets the same per-cell ceiling on the CI runner, identical for every library. A cell that cannot settle to a stable median inside it (a single mount of thousands of fields, or a full-form validation at the largest sizes on the heaviest libraries) is recorded as "did not finish" rather than dropped or estimated. The ceiling is uniform across the cohort, so it marks where a shape outgrows one measurement window, never a verdict on a library.
  • Bundle is the initial load, with the deferred part beside it. The build code-splits the way a real bundler does. A row's figure is the entry chunk plus every chunk it reaches through static imports, minified and gzipped, with the validator weighed in; anything reached only through a dynamic import is weighed separately and shown on the row as deferred. Vue is external, since every app ships it once.
  • An absent score has two distinct meanings. "Not published" means a project has not opted into a Scorecard, which is a choice and not a deficiency. "Unavailable" means the lookup did not complete on that run, a network gap on our side and never a statement about the project. The viewer linked on each row shows the live result either way, and scores are point-in-time.
  • Local versus CI. The committed numbers come from CI rather than a developer machine, but CI is not one fixed machine. The sweep shards across runners and takes whatever hardware the host assigns that day, so a row's absolute milliseconds can move between refreshes with no code change behind it. Every row within a single table is measured on one runner, which is what keeps the comparison inside a table honest, and the ratio and slope are the figures built to survive a refresh. A figure stamped "local run" is illustrative shape data from a developer machine, superseded the next time CI refreshes the page.

Reproduce it yourself

The harness is meant to be run by hand. Clone the repo, build Attaform's real dist with pnpm prepack, then from apps/bench-arena install the browser and run the arena. The full instructions live in the bench-arena README. Every adapter mounts by query parameter, so you can also open a single library and scenario in a browser and watch it work.

Where to next