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)sortOptimizationsMeanarrow_upwardCompare
ajv
Code snippetCode snippet
ajv.compile({...})
8.18.0270.68MJIT4 ms
typebox (compile)
Code snippetCode snippet
Compile(Type.Object(...))
1.1.6281.23KJIT843 μs
4.82x
stat_1
typebox (schema compile)
Code snippetCode snippet
Schema.Compile(Type.Object(...))
1.1.6281.23KJIT825 μs
4.93x
stat_1
zod
Code snippetCode snippet
z.object(...)
4.3.6160.8MJIT680 μs
5.97x
stat_1
arktype
Code snippetCode snippet
type(...)
2.2.0814.62KJIT540 μs
7.53x
stat_1
effect (decodeUnknownEither)
Code snippetCode snippet
Schema.decodeUnknownEither(
  Schema.struct(...)
)
3.20.011.72MNone515 μs
7.89x
stat_1
effect
Code snippetCode snippet
Schema.struct(...)
3.20.011.72MNone437 μs
9.31x
stat_1
zod/mini
Code snippetCode snippet
z.object(...)
4.3.6160.8MJIT221 μs
18.36x
stat_1
joi
Code snippetCode snippet
object(...)
18.0.218.91MNone206 μs
19.76x
stat_1
effect@beta (decodeUnknownOption)
Code snippetCode snippet
Schema.decodeUnknownOption(
  Schema.struct(...)
)
4.0.0-beta.3511.72MNone188 μs
21.58x
stat_1
effect@beta
Code snippetCode snippet
Schema.struct(...)
4.0.0-beta.3511.72MNone175 μs
23.29x
stat_1
yup
Code snippetCode snippet
object(...)
1.7.110.63MNone104 μs
38.94x
stat_1
sury (compile)
Code snippetCode snippet
S.compile(S.schema(...))
11.0.0-alpha.4158.32KJIT89 μs
45.68x
stat_1
valibot
Code snippetCode snippet
v.object(...)
1.3.18.61MNone45 μs
90.55x
stat_1
zod/v3
Code snippetCode snippet
z.object(...)
4.3.6160.8MNone44 μs
91.86x
stat_1
typebox
Code snippetCode snippet
Type.Object(...)
1.1.6281.23KJIT11 μs
385.66x
stat_1
sury
Code snippetCode snippet
S.schema(...)
11.0.0-alpha.4158.32KJIT8 μs
481.61x
stat_1
decoders
Code snippetCode snippet
object(...)
2.9.137.21KNone7 μs
594.24x
stat_1
io-ts
Code snippetCode snippet
t.type(...)
2.2.222.92MNone3 μs
1_356.9x
stat_1
@railway-ts/pipelines
Code snippetCode snippet
object(...)
0.1.27364None1 μs
3_842.59x
stat_1
typia (createValidate)
Code snippetCode snippet
typia.createValidate<TypiaSchema>()
12.0.1261.03KPrecompiled120 ns
33_975.07x
stat_2
typia (createIs)
Code snippetCode snippet
typia.createIs<TypiaSchema>()
12.0.1261.03KPrecompiled59 ns
69_105.59x
stat_3
Created by eskimojo for Open Circle