Re:A lightweight TypeScript library for assertion-based runt...
by gr4vityWall on Monday August 25, 2025 @03:44PM
(#45018121)
It would be nice to provide some benchmarks comparing it to Zod, arktype, etc.
Comparing it across different runtimes (Node.js, Bun, web browsers, etc.) would be great, too.
[ Parent
| on HN ]
Re:A lightweight TypeScript library for assertion-based runt...
by nayajunimesh on Wednesday August 27, 2025 @05:09PM
(#45045316)
Hey, I did some benchmarks if you're interested - benchmarks results are in the README.md.
https://github.com/nimeshnayaju/zod (Fork of Zod's repo which already included benchmarks comparing Zod 4 against Zod 3, so I simply integrated my validation library)
https://github.com/nimeshnayaju/valibot-benchmarks (An unofficial benchmark from another user comparing Valibot against Zod)
Re:A lightweight TypeScript library for assertion-based runt...
by gr4vityWall on Thursday August 28, 2025 @08:08AM
(#45051167)
Thanks, I appreciate that you added them. :)
They show a lot of potential and promising results. Any guess why Valley is slower for parsing objects with primitive values?