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.29 | 78 | 4.03 KB | 1.52 KB | 389 μs | ||
typia | 12.1.1 | 309.88K | 7.71 KB | 1.65 KB | 423 μs | ||
superstruct | 2.0.2 | 5.19M | 4.79 KB | 1.9 KB | 486 μs | ||
valibot | 1.4.0 | 11.35M | 6.22 KB | 1.93 KB | 495 μs | ||
decoders | 2.9.3 | 54.37K | 7.98 KB | 3.08 KB | 788 μs | ||
io-ts | 2.2.22 | 3.19M | 12.23 KB | 3.51 KB | 899 μs | ||
runtypes | 7.0.4 | 295.87K | 15.22 KB | 4.68 KB | 1 ms | ||
zod/mini | 4.4.3 | 181.19M | 15.67 KB | 5.04 KB | 1 ms | ||
sury | 11.0.0-alpha.5 | 231.93K | 24.77 KB | 9.18 KB | 2 ms | ||
typebox (schema) | 1.1.38 | 2.18M | 42.98 KB | 12.53 KB | 3 ms | ||
zod/v3 | 4.4.3 | 181.19M | 55.6 KB | 12.63 KB | 3 ms | ||
yup | 1.7.1 | 11.8M | 41.13 KB | 12.78 KB | 3 ms | ||
zod/v3 (default) | 4.4.3 | 181.19M | 58.53 KB | 13.72 KB | 4 ms | ||
zod | 4.4.3 | 181.19M | 63.92 KB | 17.05 KB | 4 ms | ||
typebox (schema + compile) | 1.1.38 | 2.18M | 59.21 KB | 17.08 KB | 4 ms | ||
@sapphire/shapeshift | 4.0.0 | 924.27K | 74.79 KB | 17.72 KB | 5 ms | ||
effect@beta | 4.0.0-beta.70 | 15.35M | 56.54 KB | 18.38 KB | 5 ms | ||
typebox (namespace) | 1.1.38 | 2.18M | 91.53 KB | 25.35 KB | 6 ms | ||
typebox (script) | 1.1.38 | 2.18M | 101.86 KB | 26.52 KB | 7 ms | ||
typebox | 1.1.38 | 2.18M | 118.59 KB | 31.08 KB | 8 ms | ||
typebox (namespace + compile) | 1.1.38 | 2.18M | 112.78 KB | 31.11 KB | 8 ms | ||
typebox (compile) | 1.1.38 | 2.18M | 139.26 KB | 36.67 KB | 9 ms | ||
ata-validator | 0.15.0 | 1.04K | 153.74 KB | 36.9 KB | 9 ms | ||
ajv | 8.20.0 | 306.93M | 136.48 KB | 38.47 KB | 10 ms | ||
arktype | 2.2.0 | 980.45K | 149 KB | 44.58 KB | 11 ms | ||
joi | 18.2.1 | 21.03M | 169.5 KB | 52.31 KB | 13 ms | ||
effect | 3.21.2 | 15.35M | 183.51 KB | 55.49 KB | 14 ms | ||
zod (default) | 4.4.3 | 181.19M | 268.76 KB | 60.9 KB | 16 ms |