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 | 28 | 4.03 KB | 1.52 KB | 389 μs | ||
typia | 12.0.2 | 256.82K | 7.71 KB | 1.65 KB | 423 μs | ||
superstruct | 2.0.2 | 4.08M | 4.79 KB | 1.9 KB | 486 μs | ||
valibot | 1.3.1 | 8.04M | 6.18 KB | 1.91 KB | 488 μs | ||
decoders | 2.9.3 | 36.8K | 7.98 KB | 3.08 KB | 788 μs | ||
io-ts | 2.2.22 | 2.93M | 12.23 KB | 3.51 KB | 898 μs | ||
runtypes | 7.0.4 | 284.49K | 15.22 KB | 4.68 KB | 1 ms | ||
zod/mini | 4.3.6 | 154.06M | 15.79 KB | 5.13 KB | 1 ms | ||
typebox (schema) | 1.1.23 | 280.36K | 41.22 KB | 12.06 KB | 3 ms | ||
zod/v3 | 4.3.6 | 154.06M | 55.56 KB | 12.62 KB | 3 ms | ||
yup | 1.7.1 | 10.83M | 41.12 KB | 12.77 KB | 3 ms | ||
sury | 11.0.0-alpha.4 | 152.1K | 37.95 KB | 13.12 KB | 3 ms | ||
sury (compile) | 11.0.0-alpha.4 | 152.1K | 38.4 KB | 13.3 KB | 3 ms | ||
zod/v3 (default) | 4.3.6 | 154.06M | 58.49 KB | 13.71 KB | 4 ms | ||
typebox (schema + compile) | 1.1.23 | 280.36K | 57.04 KB | 16.5 KB | 4 ms | ||
zod | 4.3.6 | 154.06M | 61.42 KB | 16.57 KB | 4 ms | ||
@sapphire/shapeshift | 4.0.0 | 631.83K | 74.67 KB | 17.62 KB | 5 ms | ||
effect@beta | 4.0.0-beta.49 | 9.54M | 59.73 KB | 19.16 KB | 5 ms | ||
ata-validator | 0.9.3 | 923 | 108.86 KB | 23.01 KB | 6 ms | ||
typebox (namespace) | 1.1.23 | 280.36K | 89.41 KB | 24.72 KB | 6 ms | ||
typebox | 1.1.23 | 280.36K | 116.58 KB | 30.43 KB | 8 ms | ||
typebox (namespace + compile) | 1.1.23 | 280.36K | 110.41 KB | 30.44 KB | 8 ms | ||
typebox (compile) | 1.1.23 | 280.36K | 137 KB | 36 KB | 9 ms | ||
ajv | 8.18.0 | 262.78M | 135.18 KB | 37.98 KB | 10 ms | ||
arktype | 2.2.0 | 892.31K | 149.01 KB | 44.58 KB | 11 ms | ||
joi | 18.1.2 | 18.77M | 170.12 KB | 52.78 KB | 14 ms | ||
zod (default) | 4.3.6 | 154.06M | 255.76 KB | 58.05 KB | 15 ms | ||
effect | 3.21.0 | 9.54M | 192.73 KB | 58.46 KB | 15 ms |