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
ajv
Code snippet
ajv.compile({...})
8.18.0201MJIT4 ms
zod
Code snippet
z.object(...)
4.3.685MJIT711 μs
5.5x
stat_1
zod/mini
Code snippet
z.object(...)
4.3.685MJIT229 μs
17.06x
stat_1
joi
Code snippet
object(...)
18.0.215MNone205 μs
19.04x
stat_1
yup
Code snippet
object(...)
1.7.19MNone102 μs
38.42x
stat_1
effect
Code snippet
Schema.struct(...)
3.19.177MNone456 μs
8.57x
stat_1
effect (decodeUnknownEither)
Code snippet
Schema.decodeUnknownEither(
  Schema.struct(...)
)
3.19.177MNone575 μs
6.79x
stat_1
valibot
Code snippet
v.object(...)
1.2.05.6MNone45 μs
86.91x
stat_1
arktype
Code snippet
type(...)
2.1.29681KJIT540 μs
7.23x
stat_1
typia (createIs)
Code snippet
typia.createIs<TypiaSchema>()
11.0.3239KPrecompiled45 ns
86_602.6x
stat_3
typia (createValidate)
Code snippet
typia.createValidate<TypiaSchema>()
11.0.3239KPrecompiled126 ns
30_961.57x
stat_2
typebox
Code snippet
Type.Object(...)
1.0.81165KNone12 μs
332.88x
stat_1
typebox (compile)
Code snippet
Compile(Type.Object(...))
1.0.81165KJIT845 μs
4.62x
stat_1
@vinejs/vine
Code snippet
vine.object(...)
4.3.0135KJIT2 μs
1_880.47x
stat_1
sury
Code snippet
S.schema(...)
11.0.0-alpha.462KJIT9 μs
456.04x
stat_1
sury (compile)
Code snippet
S.compile(S.schema(...))
11.0.0-alpha.462KJIT89 μs
44.06x
stat_1
rod-js
Code snippet
rod.object(...)
0.2.138None3 μs
1_343.77x
stat_1
rod-js (init)
Code snippet
rod.init();
rod.object(...)
0.2.138None3 μs
1_210.17x
stat_1
Created by eskimojo for Open Circle