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

Suggest: add a table whether each type can be validated or not

Open samchon opened this issue 1 year ago • 3 comments

I think it is more important how reliably and accurately a type validator validates various types than how fast or slow it is.

However, it seems not a good way to add much more benchmark graphs for various types.

Therefore, how about add a table like below?

If you agree, I can provide much more test types to validate and also implementing validation schemas for each libaries, too.

Components typia TypeBox ajv io-ts zod C.V.
Easy to use
Object (simple)
Object (hierarchical)
Object (recursive)
Object (union, implicit)
Object (union, explicit)
Object (additional tags)
Object (template literal types)
Object (dynamic properties)
Array (rest tuple)
Array (hierarchical)
Array (recursive)
Array (recursive, union)
Array (R+U, implicit)
Ultimate Union Type

samchon avatar Feb 08 '23 12:02 samchon