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 | 31 | 4.03 KB | 1.52 KB | 389 μs | ||
typia | 12.0.1 | 282.35K | 7.71 KB | 1.65 KB | 423 μs | ||
superstruct | 2.0.2 | 4.11M | 4.79 KB | 1.9 KB | 486 μs | ||
valibot | 1.3.1 | 7.46M | 6.18 KB | 1.91 KB | 488 μs | ||
decoders | 2.9.1 | 41.51K | 7.96 KB | 3.07 KB | 786 μs | ||
io-ts | 2.2.22 | 2.81M | 12.23 KB | 3.51 KB | 898 μs | ||
runtypes | 7.0.4 | 264.28K | 15.22 KB | 4.68 KB | 1 ms | ||
zod/mini | 4.3.6 | 146.36M | 15.79 KB | 5.13 KB | 1 ms | ||
typebox (schema) | 1.1.6 | 227.83K | 38.09 KB | 10.81 KB | 3 ms | ||
ata-validator | 0.4.15 | 1.85K | 54.07 KB | 12.54 KB | 3 ms | ||
zod/v3 | 4.3.6 | 146.36M | 55.56 KB | 12.62 KB | 3 ms | ||
yup | 1.7.1 | 10.53M | 41.12 KB | 12.77 KB | 3 ms | ||
sury | 11.0.0-alpha.4 | 130.86K | 37.95 KB | 13.12 KB | 3 ms | ||
sury (compile) | 11.0.0-alpha.4 | 130.86K | 38.4 KB | 13.3 KB | 3 ms | ||
zod/v3 (default) | 4.3.6 | 146.36M | 58.49 KB | 13.71 KB | 4 ms | ||
typebox (schema + compile) | 1.1.6 | 227.83K | 53.77 KB | 15.24 KB | 4 ms | ||
zod | 4.3.6 | 146.36M | 61.42 KB | 16.57 KB | 4 ms | ||
effect@beta | 4.0.0-beta.40 | 9.07M | 58.5 KB | 18.87 KB | 5 ms | ||
typebox (namespace) | 1.1.6 | 227.83K | 85.38 KB | 22.98 KB | 6 ms | ||
typebox | 1.1.6 | 227.83K | 112.67 KB | 28.71 KB | 7 ms | ||
typebox (namespace + compile) | 1.1.6 | 227.83K | 106.25 KB | 28.77 KB | 7 ms | ||
typebox (compile) | 1.1.6 | 227.83K | 132.97 KB | 34.3 KB | 9 ms | ||
ajv | 8.18.0 | 268.09M | 135.2 KB | 37.99 KB | 10 ms | ||
arktype | 2.2.0 | 911.72K | 149.01 KB | 44.58 KB | 11 ms | ||
joi | 18.1.1 | 18.59M | 170.05 KB | 52.77 KB | 14 ms | ||
zod (default) | 4.3.6 | 146.36M | 255.77 KB | 58.05 KB | 15 ms | ||
effect | 3.21.0 | 9.07M | 192.73 KB | 58.46 KB | 15 ms |