Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
November 4, 2022 09:20 am GMT

Help me benchmark on your device (8,000x faster TypeScript runtime validator)

Series of TypeScript Compiler based Libraries

  1. I made 1,000x faster TypeScript validator library
  2. I made 10x faster JSON.stringify() functions, even type safe
  3. Do not use class-validator and class-transformer, but use pure TypeScript type instead
  4. Automatic React components generator from TypeScript type

Hello, I'm a developer of typescript-json. I had introduced typescript-json as a superfast runtime validator library of TypeScript based on a benchmark. However, the benchmark is only measured on my computer, so it's a bit less objective.

In such reason, I hope measure benchmark of typescript-json on multiple devices as a lot as possible. Especially, I'm curious about the benchmark results on CPUs other than AMD such as Intel or Apple M1/2. On AMD CPU (5800H) benchmark, typescript-json is 8,000x times faster than class-validator, but how about other CPUs?

If you can help me the typescript-json benchmark, pleaese fork, clone and run below commands. After running the benchmark program, a new directory would be created under typescript-json/benchmark/results following your CPU name. Check the newly generated markdown file and send PR with your new commit.

Whe you're running benchmark on notebook, please process the benchmark program on the charging state. Also, all the benchmarked CPUs are listed up into here: typescript-json/benchmark/results. It's not forbidden to sending duplicated CPU benchmark PR, such duplicated CPU benchmark would be accepted only when the new benchmark performance is better than previous.

  1. Fork
  2. Clone
  3. npm install
  4. npm run benchmark
  5. Send PR
git clone https://github.com/user-github-account/typescript-jsoncd typescript-jsonnpm installnpm run benchmark

For reference, the benchmark takes about 30 minutes.

Below is an example of the benchmark output, measured on AMD R7 5800H.

Thanks for helping me benchmark contribution.

is() Function benchmark

assertType() function benchmark


Original Link: https://dev.to/samchon/help-me-benchmark-on-your-device-8000x-faster-typescript-runtime-validator-5c88

Share this article:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To