LogoLogo

Schema Benchmarks

    • home
      Home

    • download_2
      Download
    • timer
      Initialization
    • check_circle
      Validation
    • output_circle
      Parsing

    • 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

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

schemas.ts
import * as v from "valibot"; export const personSchema = v.object({ name: v.string(), age: v.number(), });
Optimizations
flash_offNonecodeJITbuildPrecompiled
LibrarysortVersionDownloads (/wk)arrow_upwardOptimizationsMeansortCompare
rod-js
Code snippet
rod.object(...)
0.2.138None3 μs
rod-js (init)
Code snippet
rod.init();
rod.object(...)
0.2.138None3 μs
1.11x
stat_minus_1
sury
Code snippet
S.schema(...)
11.0.0-alpha.462KJIT9 μs
2.95x
stat_minus_1
sury (compile)
Code snippet
S.compile(S.schema(...))
11.0.0-alpha.462KJIT89 μs
30.5x
stat_minus_1
@vinejs/vine
Code snippet
vine.object(...)
4.3.0135KJIT2 μs
1.4x
stat_1
typebox
Code snippet
Type.Object(...)
1.0.81165KNone12 μs
4.04x
stat_minus_1
typebox (compile)
Code snippet
Compile(Type.Object(...))
1.0.81165KJIT845 μs
290.58x
stat_minus_1
typia (createIs)
Code snippet
typia.createIs<TypiaSchema>()
11.0.3239KPrecompiled45 ns
64.45x
stat_1
typia (createValidate)
Code snippet
typia.createValidate<TypiaSchema>()
11.0.3239KPrecompiled126 ns
23.04x
stat_1
arktype
Code snippet
type(...)
2.1.29681KJIT540 μs
185.76x
stat_minus_1
valibot
Code snippet
v.object(...)
1.2.05.6MNone45 μs
15.46x
stat_minus_1
effect
Code snippet
Schema.struct(...)
3.19.177MNone456 μs
156.88x
stat_minus_1
effect (decodeUnknownEither)
Code snippet
Schema.decodeUnknownEither(
  Schema.struct(...)
)
3.19.177MNone575 μs
197.88x
stat_minus_1
yup
Code snippet
object(...)
1.7.19MNone102 μs
34.97x
stat_minus_1
joi
Code snippet
object(...)
18.0.215MNone205 μs
70.58x
stat_minus_1
zod
Code snippet
z.object(...)
4.3.685MJIT711 μs
244.41x
stat_minus_1
zod/mini
Code snippet
z.object(...)
4.3.685MJIT229 μs
78.79x
stat_minus_1
ajv
Code snippet
ajv.compile({...})
8.18.0201MJIT4 ms
1_343.77x
stat_minus_3
Created by eskimojo for Open Circle