Remix.run Logo
scottmas 3 days ago

The whole benefit over zod seems to be perf, so could you do some benchmarking? I wonder if it’s worth it

nayajunimesh 2 days ago | parent [-]

Yes, the primary focus is memory efficiency; performance improvement is a side effect of that. From my own benchmarks, I have found that to be the case. If you're validating thousands of objects per second or working with memory constraints, the difference becomes quite significant. Happy to share the full benchmark code if you'd like to run them yourself!

2 days ago | parent | next [-]
[deleted]
typeofhuman 2 days ago | parent | prev [-]

You should include this benchmark in your repo and README if you want to build trust.

I think anything that declares itself as a performance improvement over the competition ought to prove it!