pnpm i
pnpm run build
For Bundle size comparison:
pnpm run build:size
This makes the dummy data to be an empty object.
You can also see the result from GitHub Actions.
Library | Size (KiB) | Gzip Size (KiB) |
---|---|---|
arktype | 45.24 (46,327 bytes) | 15.01 (15,368 bytes) |
typia | 2.53 (2,589 bytes) | 1.11 (1,138 bytes) |
valibot | 4.01 (4,108 bytes) | 1.43 (1,463 bytes) |
zod | 52.5 (53,755 bytes) | 12.44 (12,743 bytes) |
Library | Size (KiB) | Gzip Size (KiB) |
---|---|---|
arktype | 45.85 (46,954 bytes) | 15.22 (15,585 bytes) |
typia | 10.8 (11,060 bytes) | 2.08 (2,132 bytes) |
valibot | 6.05 (6,198 bytes) | 1.9 (1,943 bytes) |
zod | 53.22 (54,500 bytes) | 12.62 (12,927 bytes) |
Version | Simpler Schema | Simpler Schema (Gzip) | Large Schema | Large Schema (Gzip) | Notes |
---|---|---|---|---|---|
6.0.5 | 65.99 KiB | 14.51 KiB | 74.26 KiB | 15.43 KiB | Only CJS |
6.0.6 | 36.47 KiB | 10.1 KiB | 44.75 KiB | 11.03 KiB | First ESM Support |
6.4.0 | 6.76 KiB | 2.69 KiB | 15.04 KiB | 3.64 KiB | ESM with file splitting |
6.4.1 | 2.53 KiB | 1.1 KiB | 10.8 KiB | 2.06 KiB | Enable sideEffects=false |
valibot(0.35.0) | 4.01 KiB | 1.43 KiB | 6.05 KiB | 1.89 KiB |