Measures the (tree shaken) size of a schema and validation defined with each library.
This will have a direct correlation with download time.
| Library | Version | Downloads (/wk) | Uncompressed | Gzipped | Time | ||
|---|---|---|---|---|---|---|---|
@railway-ts/pipelines | 0.1.27 | 64 | 4.03 KB | 1.52 KB | 389 μs | ||
typia | 12.0.2 | 214.48K | 7.71 KB | 1.65 KB | 423 μs | ||
superstruct | 2.0.2 | 3.61M | 4.79 KB | 1.9 KB | 486 μs | ||
valibot | 1.3.1 | 6.74M | 6.18 KB | 1.91 KB | 488 μs | ||
decoders | 2.9.2 | 41.42K | 7.96 KB | 3.07 KB | 787 μs | ||
io-ts | 2.2.22 | 2.61M | 12.23 KB | 3.51 KB | 898 μs | ||
runtypes | 7.0.4 | 247.26K | 15.22 KB | 4.68 KB | 1 ms | ||
zod/mini | 4.3.6 | 132.2M | 15.79 KB | 5.13 KB | 1 ms | ||
typebox (schema) | 1.1.18 | 229.4K | 41.18 KB | 12.1 KB | 3 ms | ||
zod/v3 | 4.3.6 | 132.2M | 55.56 KB | 12.62 KB | 3 ms | ||
yup | 1.7.1 | 9.44M | 41.12 KB | 12.77 KB | 3 ms | ||
sury | 11.0.0-alpha.4 | 105.04K | 37.95 KB | 13.12 KB | 3 ms | ||
sury (compile) | 11.0.0-alpha.4 | 105.04K | 38.4 KB | 13.3 KB | 3 ms | ||
zod/v3 (default) | 4.3.6 | 132.2M | 58.49 KB | 13.71 KB | 4 ms | ||
typebox (schema + compile) | 1.1.18 | 229.4K | 56.99 KB | 16.52 KB | 4 ms | ||
zod | 4.3.6 | 132.2M | 61.42 KB | 16.57 KB | 4 ms | ||
@sapphire/shapeshift | 4.0.0 | 628.65K | 74.67 KB | 17.62 KB | 5 ms | ||
effect@beta | 4.0.0-beta.43 | 8.47M | 58.52 KB | 18.89 KB | 5 ms | ||
ata-validator | 0.7.3 | 993 | 95.34 KB | 19.83 KB | 5 ms | ||
typebox (namespace) | 1.1.18 | 229.4K | 89.55 KB | 24.68 KB | 6 ms | ||
typebox | 1.1.18 | 229.4K | 116.71 KB | 30.36 KB | 8 ms | ||
typebox (namespace + compile) | 1.1.18 | 229.4K | 110.53 KB | 30.39 KB | 8 ms | ||
typebox (compile) | 1.1.18 | 229.4K | 137.12 KB | 35.93 KB | 9 ms | ||
ajv | 8.18.0 | 233.58M | 135.18 KB | 37.98 KB | 10 ms | ||
arktype | 2.2.0 | 848.08K | 149.01 KB | 44.58 KB | 11 ms | ||
joi | 18.1.2 | 16.45M | 170.12 KB | 52.78 KB | 14 ms | ||
zod (default) | 4.3.6 | 132.2M | 255.76 KB | 58.05 KB | 15 ms | ||
effect | 3.21.0 | 8.47M | 192.73 KB | 58.46 KB | 15 ms |