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)sortOptimizationsMeanarrow_upwardCompare
typia (createIs)
Code snippet
typia.createIs<TypiaSchema>()
11.0.3239KPrecompiled45 ns
typia (createValidate)
Code snippet
typia.createValidate<TypiaSchema>()
11.0.3239KPrecompiled126 ns
2.8x
stat_minus_1
@vinejs/vine
Code snippet
vine.object(...)
4.3.0135KJIT2 μs
46.05x
stat_minus_1
rod-js
Code snippet
rod.object(...)
0.2.138None3 μs
64.45x
stat_minus_1
rod-js (init)
Code snippet
rod.init();
rod.object(...)
0.2.138None3 μs
71.56x
stat_minus_1
sury
Code snippet
S.schema(...)
11.0.0-alpha.462KJIT9 μs
189.9x
stat_minus_1
typebox
Code snippet
Type.Object(...)
1.0.81165KNone12 μs
260.16x
stat_minus_1
valibot
Code snippet
v.object(...)
1.2.05.6MNone45 μs
996.47x
stat_minus_1
sury (compile)
Code snippet
S.compile(S.schema(...))
11.0.0-alpha.462KJIT89 μs
1_965.66x
stat_minus_1
yup
Code snippet
object(...)
1.7.19MNone102 μs
2_254.05x
stat_minus_1
joi
Code snippet
object(...)
18.0.215MNone205 μs
4_548.72x
stat_minus_1
zod/mini
Code snippet
z.object(...)
4.3.685MJIT229 μs
5_077.62x
stat_minus_1
effect
Code snippet
Schema.struct(...)
3.19.177MNone456 μs
10_110.26x
stat_minus_1
arktype
Code snippet
type(...)
2.1.29681KJIT540 μs
11_971.48x
stat_minus_1
effect (decodeUnknownEither)
Code snippet
Schema.decodeUnknownEither(
  Schema.struct(...)
)
3.19.177MNone575 μs
12_753.23x
stat_minus_1
zod
Code snippet
z.object(...)
4.3.685MJIT711 μs
15_751.81x
stat_minus_1
typebox (compile)
Code snippet
Compile(Type.Object(...))
1.0.81165KJIT845 μs
18_726.99x
stat_minus_1
ajv
Code snippet
ajv.compile({...})
8.18.0201MJIT4 ms
86_602.6x
stat_minus_3
Created by eskimojo for Open Circle