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
Expand sidebarExpand sidebar
Benchmarks/Standard SchemaStandard Schema
github
GitHubGitHub
DiscordDiscord
PreferencesPreferences

Many libraries implement the Standard Schema interface, which allows many other libraries to accept them without needing to specialise for each library.

Copy to clipboardCopy to clipboard
import { personSchema } from "./schemas"; const person = await upfetch(url, { schema: personSchema });

We benchmark the time taken to parse using a standard schema.

infoInfo

Some libraries require an adapter before they can be used as a standard schema. The time to convert the schema is not measured, only the time to parse using it.

Data
errorInvalidcheck_circleValid
Optimizations
flash_offNonecodeJITbuildPrecompiled
Abort early
errorAll errorswarningAbort early
LibrarysortVersionDownloads (/wk)arrow_upwardOptimizationsError typeMeansortCompare
zod
Code snippetCode snippet
4.4.1163.46MJITAll errors65 μs
zod/mini
Code snippetCode snippet
4.4.1163.46MJITAll errors67 μs
1.03x
stat_minus_1
zod/v3
Code snippetCode snippet
4.4.1163.46MNoneAll errors35 μs
1.88x
stat_1
joi
Code snippetCode snippet
18.1.219.41MNoneAll errors5 μs
14.08x
stat_3
effect
Code snippetCode snippet
3.21.212.89MNoneAbort early5 μs
12.85x
stat_3
effect
Code snippetCode snippet
3.21.212.89MNoneAll errors74 μs
1.14x
stat_minus_1
effect@beta
Code snippetCode snippet
4.0.0-beta.5912.89MNoneAll errors30 μs
2.16x
stat_1
effect@beta
Code snippetCode snippet
4.0.0-beta.5912.89MNoneAbort early31 μs
2.11x
stat_1
yup
Code snippetCode snippet
1.7.110.89MNoneAll errors561 μs
8.61x
stat_minus_2
valibot
Code snippetCode snippet
1.3.19.37MNoneAll errors29 μs
2.23x
stat_1
arktype
Code snippetCode snippet
2.2.0833.25KJITAll errors97 μs
1.48x
stat_minus_1
typia
Code snippetCode snippet
12.0.2291.57KPrecompiledAll errors11 μs
5.87x
stat_2
sury
Code snippetCode snippet
11.0.0-alpha.4180.31KJITAll errors8 μs
8.02x
stat_2
decoders
Code snippetCode snippet
2.9.344.56KNoneAll errors92 μs
1.4x
stat_minus_1
ata-validator
Code snippetCode snippet
0.12.1748JITAll errors9 μs
7.14x
stat_2
@railway-ts/pipelines
Code snippetCode snippet
0.1.2998NoneAll errors31 μs
2.09x
stat_1
Created by eskimojo for Open Circle

Preferences

Style
Theme
NPM browser