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.0268.09MJIT4 ms
runtypes
Code snippetCode snippet
Object({...})
7.0.4264.28KNone1 ms
3.61x
stat_1
typebox (compile)
Code snippetCode snippet
Compile(Type.Object(...))
1.1.6227.83KJIT828 μs
4.71x
stat_1
typebox (schema compile)
Code snippetCode snippet
Schema.Compile(Type.Object(...))
1.1.6227.83KJIT822 μs
4.74x
stat_1
zod
Code snippetCode snippet
z.object(...)
4.3.6146.36MJIT675 μs
5.78x
stat_1
arktype
Code snippetCode snippet
type(...)
2.2.0911.72KJIT536 μs
7.28x
stat_1
effect (decodeUnknownEither)
Code snippetCode snippet
Schema.decodeUnknownEither(
  Schema.struct(...)
)
3.21.09.07MNone507 μs
7.7x
stat_1
effect
Code snippetCode snippet
Schema.struct(...)
3.21.09.07MNone428 μs
9.12x
stat_1
joi
Code snippetCode snippet
object(...)
18.1.118.59MNone206 μs
18.96x
stat_1
zod/mini
Code snippetCode snippet
z.object(...)
4.3.6146.36MJIT201 μs
19.4x
stat_1
effect@beta (decodeUnknownOption)
Code snippetCode snippet
Schema.decodeUnknownOption(
  Schema.struct(...)
)
4.0.0-beta.409.07MNone172 μs
22.66x
stat_1
effect@beta
Code snippetCode snippet
Schema.struct(...)
4.0.0-beta.409.07MNone158 μs
24.71x
stat_1
yup
Code snippetCode snippet
object(...)
1.7.110.53MNone103 μs
37.92x
stat_1
sury (compile)
Code snippetCode snippet
S.compile(S.schema(...))
11.0.0-alpha.4130.86KJIT88 μs
44.54x
stat_1
zod/v3
Code snippetCode snippet
z.object(...)
4.3.6146.36MNone46 μs
84.77x
stat_1
valibot
Code snippetCode snippet
v.object(...)
1.3.17.46MNone46 μs
85.08x
stat_1
ata-validator
Code snippetCode snippet
new Validator({...})
0.4.151.85KJIT12 μs
325.06x
stat_1
typebox
Code snippetCode snippet
Type.Object(...)
1.1.6227.83KJIT10 μs
375.05x
stat_1
sury
Code snippetCode snippet
S.schema(...)
11.0.0-alpha.4130.86KJIT8 μs
459.5x
stat_1
decoders
Code snippetCode snippet
object(...)
2.9.141.51KNone7 μs
599.16x
stat_1
superstruct
Code snippetCode snippet
object(...)
2.0.24.11MNone3 μs
1_155.4x
stat_1
io-ts
Code snippetCode snippet
t.type(...)
2.2.222.81MNone3 μs
1_286x
stat_1
@railway-ts/pipelines
Code snippetCode snippet
object(...)
0.1.2731None1 μs
3_835.7x
stat_1
typia (createValidate)
Code snippetCode snippet
typia.createValidate<TypiaSchema>()
12.0.1282.35KPrecompiled119 ns
32_905.83x
stat_2
typia (createIs)
Code snippetCode snippet
typia.createIs<TypiaSchema>()
12.0.1282.35KPrecompiled68 ns
57_208.36x
stat_3
Created by eskimojo for Open Circle