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
sury
Code snippetCode snippet
S.schema(...)
11.0.0-alpha.4146.04KJIT8 μs
typebox
Code snippetCode snippet
Type.Object(...)
1.1.23277.92KJIT10 μs
1.16x
stat_minus_1
ata-validator
Code snippetCode snippet
new Validator({...})
0.8.0728JIT27 μs
3.27x
stat_minus_1
sury (compile)
Code snippetCode snippet
S.compile(S.schema(...))
11.0.0-alpha.4146.04KJIT85 μs
10.12x
stat_minus_1
zod/mini
Code snippetCode snippet
z.object(...)
4.3.6151.14MJIT202 μs
24.09x
stat_minus_1
arktype
Code snippetCode snippet
type(...)
2.2.0885.45KJIT525 μs
62.64x
stat_minus_1
zod
Code snippetCode snippet
z.object(...)
4.3.6151.14MJIT690 μs
82.4x
stat_minus_1
typebox (compile)
Code snippetCode snippet
Compile(Type.Object(...))
1.1.23277.92KJIT696 μs
83.13x
stat_minus_1
typebox (schema compile)
Code snippetCode snippet
Schema.Compile(Type.Object(...))
1.1.23277.92KJIT722 μs
86.24x
stat_minus_1
ajv
Code snippetCode snippet
ajv.compile({...})
8.18.0259.98MJIT4 ms
469.42x
stat_minus_3
Created by eskimojo for Open Circle