typescript-runtime-type-benchmarks icon indicating copy to clipboard operation
typescript-runtime-type-benchmarks copied to clipboard

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

Open acao opened this issue 1 year ago • 2 comments

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!

acao avatar Jul 30 '24 23:07 acao

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

DZakh avatar Sep 14 '24 12:09 DZakh

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

hoeck avatar Sep 14 '24 13:09 hoeck