[{"data":1,"prerenderedAt":408},["ShallowReactive",2],{"content-\u002Fdocs\u002Fcomparison\u002Fbenchmarks":3},{"id":4,"title":5,"body":6,"description":387,"extension":388,"meta":389,"metaRows":390,"navigation":391,"path":392,"seo":393,"source":390,"stem":406,"__hash__":407},"docs\u002Fdocs\u002Fcomparison\u002Fbenchmarks.md","Benchmarks",{"type":7,"value":8,"toc":359},"minimark",[9,13,20,23,35,40,43,95,107,111,114,119,122,126,130,133,136,140,149,152,156,160,163,167,170,173,177,180,184,188,192,195,198,202,205,207,211,215,218,221,225,228,232,236,239,243,246,250,257,261,265,268,310,314,332,336],[10,11,5],"h1",{"id":12},"benchmarks",[14,15,16],"blockquote",{},[17,18,19],"p",{},"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.",[21,22],"docs-meta-table",{},[17,24,25,26,30,31,34],{},"This page is an honest scoreboard. The numbers come from ",[27,28,29],"code",{},"apps\u002Fbench-arena",", a self-contained harness that drives every library through identical scenarios in real Chromium via Playwright, then writes one provenance-stamped ",[27,32,33],{},"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.",[36,37,39],"h2",{"id":38},"how-to-read-this","How to read this",[17,41,42],{},"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:",[44,45,46,54,64,70,80],"ul",{},[47,48,49,53],"li",{},[50,51,52],"strong",{},"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.",[47,55,56,59,60,63],{},[50,57,58],{},"The DOM is held constant."," Every headless library drives the same bare ",[27,61,62],{},"\u003Cinput>"," 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.",[47,65,66,69],{},[50,67,68],{},"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.",[47,71,72,75,76,79],{},[50,73,74],{},"Real builds, pinned validators."," Attaform is consumed as its published ",[27,77,78],{},"dist",", the same artifact an installer gets, minified in the same build as every other library. Zod v3 is pinned across the Zod-capable cohort.",[47,81,82,85,86,90,91,94],{},[50,83,84],{},"Numbers normalize two ways."," A ",[87,88,89],"em",{},"ratio"," compares each library to Attaform at the same size. A ",[87,92,93],{},"slope"," compares a library to itself at the scenario's smallest size, so the shape of growth survives a change of machine.",[17,96,97,98,106],{},"The harness, every adapter, and the scenario generators live in ",[99,100,104],"a",{"href":101,"rel":102},"https:\u002F\u002Fgithub.com\u002Fattaform\u002FAttaform\u002Ftree\u002Fmain\u002Fapps\u002Fbench-arena",[103],"nofollow",[27,105,29],{},". Found a fairer configuration for a library? The adapters are small and the README invites a pull request.",[36,108,110],{"id":109},"what-it-costs-to-adopt","What it costs to adopt",[17,112,113],{},"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.",[115,116,118],"h3",{"id":117},"capability-coverage","Capability coverage",[17,120,121],{},"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.",[123,124],"bench-arena",{"dimension":125},"capabilities",[115,127,129],{"id":128},"bundle-size","Bundle size",[17,131,132],{},"Attaform is the heaviest in the cohort. That is the cost of shipping reactive form state, schema validation binding, persistence, undo and redo, and a multi-step wizard in one zero-dependency package, and it is the honest price of admission. The figure is the full bundle; an app that route-splits its forms pulls less on a first paint.",[123,134],{"dimension":135},"bundle",[115,137,139],{"id":138},"supply-chain-health","Supply-chain health",[17,141,142,143,148],{},"The ",[99,144,147],{"href":145,"rel":146},"https:\u002F\u002Fscorecard.dev",[103],"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.",[123,150],{"dimension":151},"scorecard",[36,153,155],{"id":154},"typing-into-a-form","Typing into a form",[115,157,159],{"id":158},"keystroke-latency","Keystroke latency",[17,161,162],{},"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.",[123,164],{"dimension":165,"scenario":166},"keystroke","flat",[17,168,169],{},"At five thousand fields the picture tightens. The harness reports where Attaform lands plainly, and it is a scenario worth a future look.",[123,171],{"dimension":165,"scenario":172},"massive",[115,174,176],{"id":175},"re-render-scope","Re-render scope",[17,178,179],{},"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.",[123,181],{"dimension":182,"scenario":183},"rerender","grid",[36,185,187],{"id":186},"standing-up-a-form","Standing up a form",[115,189,191],{"id":190},"mounting-a-large-form","Mounting a large form",[17,193,194],{},"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.",[123,196],{"dimension":197,"scenario":172},"mount",[115,199,201],{"id":200},"memory","Memory",[17,203,204],{},"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.",[123,206],{"dimension":200,"scenario":172},[36,208,210],{"id":209},"working-the-harder-shapes","Working the harder shapes",[115,212,214],{"id":213},"validation-throughput","Validation throughput",[17,216,217],{},"A full-form validation pass over a massive form, the cost of a submit on the largest shape in the suite.",[123,219],{"dimension":220,"scenario":172},"validate",[115,222,224],{"id":223},"discriminated-unions","Discriminated unions",[17,226,227],{},"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.",[123,229],{"dimension":230,"scenario":231},"variantFlip","discriminated-union",[115,233,235],{"id":234},"dynamic-arrays","Dynamic arrays",[17,237,238],{},"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.",[123,240],{"dimension":241,"scenario":242},"arrayAdd","arrays",[123,244],{"dimension":245,"scenario":242},"arrayReorder",[115,247,249],{"id":248},"multi-step-wizard","Multi-step wizard",[17,251,252,253,256],{},"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 ",[27,254,255],{},"useWizard"," ships the flow as a first-class shape.",[123,258],{"dimension":259,"scenario":260},"stepTransition","wizard",[36,262,264],{"id":263},"caveats","Caveats",[17,266,267],{},"The methodology is only as good as what it admits.",[44,269,270,276,286,292,298,304],{},[47,271,272,275],{},[50,273,274],{},"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.",[47,277,278,281,282,285],{},[50,279,280],{},"Heap is Chromium-quantized."," ",[27,283,284],{},"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.",[47,287,288,291],{},[50,289,290],{},"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.",[47,293,294,297],{},[50,295,296],{},"Bundle is total, not first-paint."," Every figure is the full minified and gzipped cost with the validator weighed in. Vue is external, since every app ships it once. Code-splitting changes what a first paint actually pulls.",[47,299,300,303],{},[50,301,302],{},"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.",[47,305,306,309],{},[50,307,308],{},"Local versus CI."," The committed numbers come from CI on a fixed runner. A figure stamped \"local run\" is illustrative shape data from a developer machine, superseded the next time CI refreshes the page.",[36,311,313],{"id":312},"reproduce-it-yourself","Reproduce it yourself",[17,315,316,317,319,320,323,324,326,327,331],{},"The harness is meant to be run by hand. Clone the repo, build Attaform's real ",[27,318,78],{}," with ",[27,321,322],{},"pnpm prepack",", then from ",[27,325,29],{}," install the browser and run the arena. The full instructions live in the ",[99,328,330],{"href":101,"rel":329},[103],"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.",[36,333,335],{"id":334},"where-to-next","Where to next",[44,337,338,345,352],{},[47,339,340,344],{},[99,341,343],{"href":342},"\u002Fdocs\u002Fserver-and-ssr\u002Fperformance","Performance",": Attaform's own hot-path numbers, measured against a per-PR regression gate.",[47,346,347,351],{},[99,348,350],{"href":349},"\u002Fdocs\u002Fschemas\u002Fstorage-shape","How values are stored",": the slim write shape behind the keystroke and validation figures.",[47,353,354,358],{},[99,355,357],{"href":356},"\u002Fdocs\u002Fwriting-and-mutating\u002Ffield-arrays","Field-array mutations",": the array-helper characteristics behind the dynamic-array rows.",{"title":360,"searchDepth":361,"depth":361,"links":362},"",2,[363,364,370,374,378,384,385,386],{"id":38,"depth":361,"text":39},{"id":109,"depth":361,"text":110,"children":365},[366,368,369],{"id":117,"depth":367,"text":118},3,{"id":128,"depth":367,"text":129},{"id":138,"depth":367,"text":139},{"id":154,"depth":361,"text":155,"children":371},[372,373],{"id":158,"depth":367,"text":159},{"id":175,"depth":367,"text":176},{"id":186,"depth":361,"text":187,"children":375},[376,377],{"id":190,"depth":367,"text":191},{"id":200,"depth":367,"text":201},{"id":209,"depth":361,"text":210,"children":379},[380,381,382,383],{"id":213,"depth":367,"text":214},{"id":223,"depth":367,"text":224},{"id":234,"depth":367,"text":235},{"id":248,"depth":367,"text":249},{"id":263,"depth":361,"text":264},{"id":312,"depth":361,"text":313},{"id":334,"depth":361,"text":335},"[object Object]","md",{},null,true,"\u002Fdocs\u002Fcomparison\u002Fbenchmarks",{"title":5,"description":394},{"How Attaform compares across the Vue form-library field":395,"metaRows":396},"bundle size, supply-chain scores, and per-scenario runtime measured in a real browser, every number traced to the run that produced it.",[397,400,403],{"label":398,"value":399},"Category","Comparison",{"label":401,"value":402},"Method","Playwright, real Chromium",{"label":404,"value":405},"Provenance","committed results.json","docs\u002Fcomparison\u002Fbenchmarks","RkVzc6Q337akKADP_S4fWY4sRSb1lHWD6mH9xywk4LU",1781217249356]