benchmarks / end-to-end flows / flows-pipeline
End-to-end flows
validate + query + JSON — 50k objects
Validate 50k unknown objects, filter/project admins, serialize the result.
Validate 50k unknown objects, filter/project admins, serialize the result.
Reproduce it
pnpm bench:flows
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).
A handwritten fused loop measured 2.02 ms / 0.69 MB — not comparable, listed as the physical floor.
| Suite | Implementation | Avg time | Heap/op |
|---|---|---|---|
| validate + query + JSON — 50k objects | jit validate + query + JSON | 8.89 ms | 5.42 MB |
| Zod safeParse + filter/map/stringify | 22.53 ms | 8.58 MB |
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