一覧へ戻る
anatoo/zod-vs-valibot(新しいタブで開きます)
主要言語: TypeScript
Zod vs Valibot: bundle size comparison
- star 数
- 4
- watcher 数
- 1
- fork 数
- 0
- issue 数
- 0
- 最終更新
- 2025/03/06
主要言語: 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