moltar / typescript-runtime-type-benchmarks

📊 Benchmark Comparison of Packages with Runtime Validation and TypeScript Support
https://moltar.github.io/typescript-runtime-type-benchmarks/
645 stars 62 forks source link

[Enhancement] add filter for "requires pre-compilation"? #1275

Open acao opened 3 months ago

acao commented 3 months ago

This is a wonderful resource, it would be cool to see which of these libraries and modes of usage require preliminary compilation before runtime usage - for example, via a codegen step and/or a compiler or bundler plugin. Every time I have checked on these benchmarks, this is ultimately what I want to know - which is the fastest that doesnt require pre-compilation, and I imagine I'm not the only one. From what I can tell, that would mean ajv would be fastest (because it's working from static JSON) and @badrap/valita as 2nd as per the latest stats as a dynamic runtime parser.

I would happy to create a PR and look up this information if you're interested!

DZakh commented 1 month ago

The fastest is https://github.com/DZakh/rescript-schema

hoeck commented 1 month ago

@acao we already had the idea to add a tag system to provide additional information for each library: #1126