Steve - How much overhead does Zod have? How pe...
How much overhead does Zod have? How performant is it actually?
2 Replies
relative to not checking at all?
depends on the schema type
but it absolutely is not free
You can run the benchmarks (and design your own hypotheticals) (see https://github.com/colinhacks/zod/blob/3032e240a0c227692bb96eedf240ed493c53f54c/package.json#L96)
GitHub
zod/package.json at 3032e240a0c227692bb96eedf240ed493c53f54c · coli...
TypeScript-first schema validation with static type inference - colinhacks/zod