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
@railway-ts/pipelines
Code snippetCode snippet
object(...)
0.1.2734None1 μs
io-ts
Code snippetCode snippet
t.type(...)
2.2.222.92MNone3 μs
2.89x
stat_minus_1
superstruct
Code snippetCode snippet
object(...)
2.0.24.02MNone4 μs
3.24x
stat_minus_1
decoders
Code snippetCode snippet
object(...)
2.9.338.55KNone8 μs
6.68x
stat_minus_1
@sapphire/shapeshift
Code snippetCode snippet
s.object(...)
4.0.0629.44KNone34 μs
29.85x
stat_minus_1
valibot
Code snippetCode snippet
v.object(...)
1.3.17.93MNone44 μs
38.64x
stat_minus_1
zod/v3
Code snippetCode snippet
z.object(...)
4.3.6151.14MNone47 μs
40.76x
stat_minus_1
yup
Code snippetCode snippet
object(...)
1.7.110.79MNone105 μs
91.37x
stat_minus_1
joi
Code snippetCode snippet
object(...)
18.1.218.74MNone200 μs
174.16x
stat_minus_1
effect@beta
Code snippetCode snippet
Schema.struct(...)
4.0.0-beta.469.44MNone205 μs
178.51x
stat_minus_1
effect@beta (decodeUnknownOption)
Code snippetCode snippet
Schema.decodeUnknownOption(
  Schema.struct(...)
)
4.0.0-beta.469.44MNone226 μs
196.29x
stat_minus_1
effect
Code snippetCode snippet
Schema.struct(...)
3.21.09.44MNone430 μs
374.13x
stat_minus_2
effect (decodeUnknownEither)
Code snippetCode snippet
Schema.decodeUnknownEither(
  Schema.struct(...)
)
3.21.09.44MNone523 μs
455.4x
stat_minus_2
runtypes
Code snippetCode snippet
Object({...})
7.0.4279.42KNone1 ms
907.7x
stat_minus_3
Created by eskimojo for Open Circle