typescript-runtime-type-benchmarks
typescript-runtime-type-benchmarks copied to clipboard
What about adding much more test cases?
https://github.com/samchon/typescript-json/tree/master/test/structures
I'm developing a runtime type checker (validator) library, and have prepared lots of test cases, for hardcore validation.
How about typescript-runtime-type-benchmarks to adapt such test cases?
They may be useful.
If you want to see use-case for benchmark:
https://github.com/samchon/typescript-json/blob/master/benchmark/features/benchmark_is.ts
I am open to having more tests, but we need to be mindful of total run time. If we have too many or too slow ones then it'll be taking a long time, and we can even eventually run out of CI time limit 😁
But having more different tests, I think is a good idea overall. Just need to understand what we are targeting and what are usually the slow parts.
Validation failures are also one less-benchmarked case. Their performance also becomes relevant in cases like union/oneOf/... where some subvalidators might fail while the whole validation succeeds as a whole.
Wrote another issue with a little bit different idea -> #1025