This project compares schema validation performance and correctness between Zod and ArkType.
- src/schemas/common.ts: Contains the schema definitions for both Zod and ArkType.
- src/schemas/schema.bench.ts: Contains benchmark tests to compare the performance of Zod and ArkType.
- src/schemas/schema.test.ts: Contains unit tests to validate the correctness of the schemas using Zod and ArkType.
- Node.js (>= 14.x)
- npm (>= 6.x)
- Clone the repository:
git clone git@github.com:watershed-climate/zod-vs-arktype.git
cd zod-vs-arktype- Install dependencies:
npm installTo run the unit tests:
npm testTo run the benchmark tests:
npm run benchTo perform a type check:
npm run typecheck