jit 1.0 compiled validators, queries and codecs are out. Star it on GitHub →

jit

benchmarks / serialization & streaming / stream-reject

Serialization & streaming

stream — reject early, bad item 3 of 10k

Progressive validation fails fast while the payload streams in.

stream — reject early, bad item 3 of 10klower is better · pnpm bench:stream

Progressive validation fails fast while the payload streams in.

Reproduce it

pnpm bench:stream

Clone the repository, install with pnpm, and run the command above. mitata prints avg times and heap per operation; results land in bench/results (gitignored).

Benchmark results with environment Node 22.17.1, AMD Ryzen 7 5800H
SuiteImplementationAvg timeHeap/op
stream — reject early, bad item 3 of 10kjit stream18.89 µs24.5 KB
JSON.parse + validate1.96 ms921.8 KB
mitata · Node 22.17.1 · linux-x64 · AMD Ryzen 7 5800H · captured 2026-07-11Zod 4.4.3 · TypeBox 0.34 · typia 12 · fast-json-stringify 7