benchmarks / high-load validation / load-safeparse-10k
High-load validation
safeParse — 10k valid users
Structured parsing over a preallocated batch.
Structured parsing over a preallocated batch.
Reproduce it
pnpm bench:load
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 — 10k valid users | jit | 567.17 µs | 1.73 KB |
| TypeBox (compiled) | 655.54 µs | 560.25 KB | |
| typia (generated) | 793.31 µs | 263.75 B | |
| Zod 4 | 11.24 ms | 6.21 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