Skip to content

Comparison of Zod and Arktype performance with GHG schema

License

Notifications You must be signed in to change notification settings

watershed-climate/zod-vs-arktype

Repository files navigation

zod-vs-arktype

This project compares schema validation performance and correctness between Zod and ArkType.

Project Structure

  • 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.

Getting Started

Prerequisites

  • Node.js (>= 14.x)
  • npm (>= 6.x)

Installation

  1. Clone the repository:
git clone git@github.com:watershed-climate/zod-vs-arktype.git
cd zod-vs-arktype
  1. Install dependencies:
npm install

Running Tests

To run the unit tests:

npm test

To run the benchmark tests:

npm run bench

To perform a type check:

npm run typecheck

About

Comparison of Zod and Arktype performance with GHG schema

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors