Back to results
anatoo/zod-vs-valibot(opens in a new tab)
Language: TypeScript
Zod vs Valibot: bundle size comparison
- stars
- 4
- watchers
- 1
- forks
- 0
- open issues
- 0
- Last updated
- 03/06/2025
Language: TypeScript
Zod vs Valibot: bundle size comparison
This is a simple script to compare the bundle size of Zod and Valibot. It compares the bundle size with tree-shaking enabled rollup bundler.
| case | format | minified | gzipped |
|---|---|---|---|
| zod_string.js | cjs | 54404B | 12374B |
| valibot_string.js | cjs | 1344B | 714B |
| zod_object.js | cjs | 54487B | 12414B |
| valibot_object.js | cjs | 3035B | 1171B |
bun install
To run:
bun run index.ts