LogoLogo

Schema Benchmarks

    • home
      Home

    • download_2
      Download

    • timer
      Initialization
    • check_circle
      Validation
    • output_circle
      Parsing
    • swap_horiz
      Codec
    • schema
      Standard Schema
    • format_quote
      String

    • error
      Stack

    • article
      Blog
Expand sidebarExpand sidebar
Benchmarks/InitializationInitialization
github
GitHubGitHub
DiscordDiscord
PreferencesPreferences

Creating a schema. This is usually a one time cost.

schemas.ts
Copy to clipboardCopy to clipboard
import * as v from "valibot"; export const personSchema = v.object({ name: v.string(), age: v.number(), });
Optimizations
flash_offNonecodeJITbuildPrecompiled
LibrarysortVersionDownloads (/wk)sortOptimizationsMeanarrow_upwardCompare
typia (createIs)
Code snippetCode snippet
typia.createIs<TypiaSchema>()
12.1.1309.88KPrecompiled60 ns
typia (createValidate)
Code snippetCode snippet
typia.createValidate<TypiaSchema>()
12.1.1309.88KPrecompiled122 ns
2.04x
stat_minus_1
@railway-ts/pipelines
Code snippetCode snippet
object(...)
0.1.2978None1 μs
16.82x
stat_minus_1
io-ts
Code snippetCode snippet
t.type(...)
2.2.223.19MNone3 μs
51.53x
stat_minus_1
superstruct
Code snippetCode snippet
object(...)
2.0.25.19MNone4 μs
58.61x
stat_minus_1
sury
Code snippetCode snippet
S.schema(...)
11.0.0-alpha.5231.93KJIT5 μs
91.38x
stat_minus_1
decoders
Code snippetCode snippet
object(...)
2.9.354.37KNone7 μs
112.53x
stat_minus_1
typebox
Code snippetCode snippet
Type.Object(...)
1.1.382.18MJIT11 μs
191.91x
stat_minus_1
ata-validator
Code snippetCode snippet
new Validator({...})
0.15.01.04KJIT23 μs
380x
stat_minus_1
@sapphire/shapeshift
Code snippetCode snippet
s.object(...)
4.0.0924.27KNone38 μs
636.06x
stat_minus_1
zod/v3
Code snippetCode snippet
z.object(...)
4.4.3181.19MNone44 μs
742.74x
stat_minus_1
valibot
Code snippetCode snippet
v.object(...)
1.4.011.35MNone61 μs
1_020.84x
stat_minus_1
yup
Code snippetCode snippet
object(...)
1.7.111.8MNone107 μs
1_796.21x
stat_minus_1
effect@beta
Code snippetCode snippet
Schema.struct(...)
4.0.0-beta.7015.35MNone173 μs
2_893.1x
stat_minus_1
effect@beta (decodeUnknownOption)
Code snippetCode snippet
Schema.decodeUnknownOption(
  Schema.struct(...)
)
4.0.0-beta.7015.35MNone176 μs
2_948.71x
stat_minus_1
sury (parser)
Code snippetCode snippet
S.parser(S.schema(...))
11.0.0-alpha.5231.93KJIT176 μs
2_949.18x
stat_minus_1
joi
Code snippetCode snippet
object(...)
18.2.121.03MNone215 μs
3_587.61x
stat_minus_1
zod/mini
Code snippetCode snippet
z.object(...)
4.4.3181.19MJIT217 μs
3_634.5x
stat_minus_1
effect
Code snippetCode snippet
Schema.struct(...)
3.21.215.35MNone422 μs
7_060.5x
stat_minus_1
zod
Code snippetCode snippet
z.object(...)
4.4.3181.19MJIT509 μs
8_509.35x
stat_minus_1
effect (decodeUnknownEither)
Code snippetCode snippet
Schema.decodeUnknownEither(
  Schema.struct(...)
)
3.21.215.35MNone510 μs
8_531.72x
stat_minus_1
arktype
Code snippetCode snippet
type(...)
2.2.0980.45KJIT538 μs
8_986.43x
stat_minus_1
typebox (schema compile)
Code snippetCode snippet
Schema.Compile(Type.Object(...))
1.1.382.18MJIT715 μs
11_958.27x
stat_minus_1
typebox (compile)
Code snippetCode snippet
Compile(Type.Object(...))
1.1.382.18MJIT768 μs
12_844.82x
stat_minus_1
runtypes
Code snippetCode snippet
Object({...})
7.0.4295.87KNone1 ms
18_321.05x
stat_minus_1
typebox (script)
Code snippetCode snippet
Type.Script(...)
1.1.382.18MJIT3 ms
42_332.62x
stat_minus_2
typebox (script compile)
Code snippetCode snippet
Schema.Compile(Type.Script(...))
1.1.382.18MJIT3 ms
51_410.14x
stat_minus_3
ajv
Code snippetCode snippet
ajv.compile({...})
8.20.0306.93MJIT4 ms
66_426.12x
stat_minus_3
Created by eskimojo for Open Circle

Preferences

Style
Theme
NPM browser