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
Code styleCode style
Normal styleNormal style
System themeSystem theme
Light themeLight theme
Dark themeDark theme
Expand sidebarExpand sidebar
Benchmarks/InitializationInitialization
Code styleCode style
Normal styleNormal style
System themeSystem theme
Light themeLight theme
Dark themeDark theme
github
GitHubGitHub
DiscordDiscord

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)arrow_upwardOptimizationsMeansortCompare
ajv
Code snippetCode snippet
ajv.compile({...})
8.18.0275.77MJIT4 ms
zod
Code snippetCode snippet
z.object(...)
4.3.6160.29MJIT680 μs
5.97x
stat_1
zod/mini
Code snippetCode snippet
z.object(...)
4.3.6160.29MJIT221 μs
18.36x
stat_1
zod/v3
Code snippetCode snippet
z.object(...)
4.3.6160.29MNone44 μs
91.86x
stat_1
joi
Code snippetCode snippet
object(...)
18.0.219.01MNone206 μs
19.76x
stat_1
effect
Code snippetCode snippet
Schema.struct(...)
3.20.012.11MNone437 μs
9.31x
stat_1
effect (decodeUnknownEither)
Code snippetCode snippet
Schema.decodeUnknownEither(
  Schema.struct(...)
)
3.20.012.11MNone515 μs
7.89x
stat_1
effect@beta
Code snippetCode snippet
Schema.struct(...)
4.0.0-beta.3512.11MNone175 μs
23.29x
stat_1
effect@beta (decodeUnknownOption)
Code snippetCode snippet
Schema.decodeUnknownOption(
  Schema.struct(...)
)
4.0.0-beta.3512.11MNone188 μs
21.58x
stat_1
yup
Code snippetCode snippet
object(...)
1.7.110.63MNone104 μs
38.94x
stat_1
valibot
Code snippetCode snippet
v.object(...)
1.3.18.8MNone45 μs
90.55x
stat_1
io-ts
Code snippetCode snippet
t.type(...)
2.2.222.88MNone3 μs
1_356.9x
stat_1
typebox
Code snippetCode snippet
Type.Object(...)
1.1.61.42MJIT11 μs
385.66x
stat_1
typebox (compile)
Code snippetCode snippet
Compile(Type.Object(...))
1.1.61.42MJIT843 μs
4.82x
stat_1
typebox (schema compile)
Code snippetCode snippet
Schema.Compile(Type.Object(...))
1.1.61.42MJIT825 μs
4.93x
stat_1
arktype
Code snippetCode snippet
type(...)
2.2.0795.54KJIT540 μs
7.53x
stat_1
typia (createIs)
Code snippetCode snippet
typia.createIs<TypiaSchema>()
12.0.1269.13KPrecompiled59 ns
69_105.59x
stat_3
typia (createValidate)
Code snippetCode snippet
typia.createValidate<TypiaSchema>()
12.0.1269.13KPrecompiled120 ns
33_975.07x
stat_2
sury
Code snippetCode snippet
S.schema(...)
11.0.0-alpha.4171.65KJIT8 μs
481.61x
stat_1
sury (compile)
Code snippetCode snippet
S.compile(S.schema(...))
11.0.0-alpha.4171.65KJIT89 μs
45.68x
stat_1
decoders
Code snippetCode snippet
object(...)
2.9.139.58KNone7 μs
594.24x
stat_1
@railway-ts/pipelines
Code snippetCode snippet
object(...)
0.1.27191None1 μs
3_842.59x
stat_1
Created by eskimojo for Open Circle