moltar / typescript-runtime-type-benchmarks

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

Add deepkit #894

Open BasixKOR opened 2 years ago

BasixKOR commented 2 years ago

As a part of the Deepkit framework they provide a runtime type implementation documented here: https://deepkit.io/documentation/type

moltar commented 2 years ago

Thanks for the tip @BasixKOR!

We have benchmarks for @marcj/marshal (which is from the same author as Deepkit).

The link to @marcj/marshal repo seems to redirect to Deepkit now too.

Wondering if it is now part of the project or is it a separate project?

@marcj could you please add your thoughts. Thanks!

marcj commented 2 years ago

Marshal was the foundation of Deepkit, so the repo was renamed. Its functionality with the same JIT technique is now in deepkit/type, but instead of being based on classes with TypeScript decorators, it's now based on runtime TypeScript types. The refactor is relatively new, so I expect a slight decrease in performance.

moltar commented 2 years ago

Sounds like we probably want to keep both @marcj/marshal and deepkit for now?

@BasixKOR would you be able to contribute a PR for this?

BasixKOR commented 2 years ago

I'm definitely interested, but I wasn't sure where should I put @deepkit/type-compiler for benchmarking (more specifically whether does it impact other benchmarks)

moltar commented 2 years ago

@hoeck is the Chief Classifier in this repo, maybe he can pitch in with his thoughts? 😁