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

  • JSON Schema

    • data_object
      Schema to JSON
    • code
      JSON to Schema
    • verified
      Compliance

    • deployed_code
      Libraries

    • article
      Blog
Expand sidebarExpand sidebar
Benchmarks/InitializationInitialization
github
GitHubGitHub
DiscordDiscord
PreferencesPreferences

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_offNone
  • codeJIT
  • buildPrecompiled
LibrarysortVersiondownload/wkarrow_upwardOptimizationsMeansortCompare
ajv
Code snippetCode snippet
ajv.compile({...})
8.20.0313.27MJIT4 ms
zod
Code snippetCode snippet
z.object(...)
4.4.3223.55MJIT632 μs
5.97x
stat_1
zod/mini
Code snippetCode snippet
z.object(...)
4.4.3223.55MJIT208 μs
18.18x
stat_1
typebox
Code snippetCode snippet
Type.Object(...)
1.3.157.55MJIT12 μs
326.09x
stat_2
typebox (compile)
Code snippetCode snippet
Compile(Type.Object(...))
1.3.157.55MJIT172 μs
21.94x
stat_1
typebox (schema compile)
Code snippetCode snippet
Schema.Compile(Type.Object(...))
1.3.157.55MJIT152 μs
24.84x
stat_1
typebox (script compile)
Code snippetCode snippet
Schema.Compile(Type.Script(...))
1.3.157.55MJIT1 ms
2.53x
stat_1
typebox (script)
Code snippetCode snippet
Type.Script(...)
1.3.157.55MJIT2 ms
2.25x
stat_1
arktype
Code snippetCode snippet
type(...)
2.2.31.4MJIT448 μs
8.43x
stat_1
sury
Code snippetCode snippet
S.schema(...)
11.0.0-rc.1240.68KJIT6 μs
625.14x
stat_3
sury (parser)
Code snippetCode snippet
S.parser(S.schema(...))
11.0.0-rc.1240.68KJIT92 μs
40.86x
stat_1
ata-validator
Code snippetCode snippet
new Validator({...})
1.6.11.06KJIT126 μs
29.94x
stat_1
Created by eskimojo for Open Circle

Preferences

Style
Theme
NPM browser
Code ligatures