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
zod/v3
Code snippetCode snippet
z.object(...)
4.4.3223.55MNone44 μs
effect
Code snippetCode snippet
Schema.struct(...)
3.22.024.3MNone427 μs
9.64x
stat_minus_1
effect (decodeUnknownEither)
Code snippetCode snippet
Schema.decodeUnknownEither(
  Schema.struct(...)
)
3.22.024.3MNone506 μs
11.44x
stat_minus_1
effect@beta
Code snippetCode snippet
Schema.struct(...)
4.0.0-beta.10124.3MNone161 μs
3.64x
stat_minus_1
effect@beta (decodeUnknownOption)
Code snippetCode snippet
Schema.decodeUnknownOption(
  Schema.struct(...)
)
4.0.0-beta.10124.3MNone238 μs
5.37x
stat_minus_1
joi
Code snippetCode snippet
object(...)
18.2.320.46MNone224 μs
5.05x
stat_minus_1
valibot
Code snippetCode snippet
v.object(...)
1.4.214.88MNone56 μs
1.26x
stat_minus_1
yup
Code snippetCode snippet
object(...)
1.7.110.52MNone102 μs
2.31x
stat_minus_1
superstruct
Code snippetCode snippet
object(...)
2.0.25.02MNone4 μs
12.01x
stat_1
io-ts
Code snippetCode snippet
t.type(...)
2.2.222.26MNone3 μs
15.3x
stat_2
@sapphire/shapeshift
Code snippetCode snippet
s.object(...)
5.0.01.06MNone39 μs
1.13x
stat_1
runtypes
Code snippetCode snippet
Object({...})
7.0.5190.07KNone1 ms
24.98x
stat_minus_2
decoders
Code snippetCode snippet
object(...)
2.9.324.27KNone6 μs
7.98x
stat_1
@paseri/paseri
Code snippetCode snippet
p.object(...)
1.9.7172None3 μs
14.64x
stat_1
@railway-ts/pipelines
Code snippetCode snippet
object(...)
0.1.29123None974 ns
45.46x
stat_3
Created by eskimojo for Open Circle

Preferences

Style
Theme
NPM browser
Code ligatures