benchmarks / validation / safeparse-invalid
Validation
safeParse — invalid object, 7 issues
Structured issue reporting on a deeply broken input.
Structured issue reporting on a deeply broken input.
Reproduce it
pnpm bench:validate
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).
| Suite | Implementation | Avg time | Heap/op |
|---|---|---|---|
| safeParse — invalid object, 7 issues | jit (runtime) | 118.56 ns | 624.33 b |
| jit (AOT) | 120.59 ns | — | |
| Zod 4 | 24.99 µs | 5.31 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