Re:A lightweight TypeScript library for assertion-based runt...
by CharlesW on Monday August 25, 2025 @12:50PM
(#45015876)
OP, you could potentially leverage an existing benchmark suite: https://naruaway.github.io/valibot-benchmarks/
[ Parent
| on HN ]
Re:A lightweight TypeScript library for assertion-based runt...
by nayajunimesh on Monday August 25, 2025 @02:15PM
(#45017000)
Thank you, this is quite helpful. Will take a detailed look very soon!
Re:A lightweight TypeScript library for assertion-based runt...
by typeofhuman on Monday August 25, 2025 @03:45PM
(#45018135)
How do you know you're tool is more performant?
Re:A lightweight TypeScript library for assertion-based runt...
by nayajunimesh on Wednesday August 27, 2025 @05:27PM
(#45045506)
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 suggested in another comment comparing Valibot against Zod)
Re:A lightweight TypeScript library for assertion-based runt...
by nayajunimesh on Wednesday August 27, 2025 @04:47PM
(#45045029)
Hey, thanks for the link! I was able to add the library to the benchmark quite easily. Here's the fork if you're interested:
https://github.com/nimeshnayaju/valibot-benchmarks
I have included the results I obtained from running the benchmark in the README.md. I'd love for you to also take a look at the changed code to see if I may have missed something with the integration. Curious to hear your feedback too!