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)sortOptimizationsError typeMeanarrow_upwardCompare
yup
Code snippetCode snippet
1.7.110.79MNoneAll errors549 μs
arktype
Code snippetCode snippet
2.2.0824.7KJITAll errors96 μs
5.72x
stat_1
effect
Code snippetCode snippet
3.21.212.77MNoneAll errors79 μs
6.97x
stat_1
decoders
Code snippetCode snippet
2.9.341.68KNoneAll errors77 μs
7.18x
stat_1
zod
Code snippetCode snippet
4.3.6162.73MJITAll errors75 μs
7.35x
stat_1
zod/mini
Code snippetCode snippet
4.3.6162.73MJITAll errors71 μs
7.69x
stat_1
zod/v3
Code snippetCode snippet
4.3.6162.73MNoneAll errors34 μs
16.04x
stat_1
@railway-ts/pipelines
Code snippetCode snippet
0.1.2981NoneAll errors31 μs
17.98x
stat_1
effect@beta
Code snippetCode snippet
4.0.0-beta.5712.77MNoneAbort early30 μs
18.29x
stat_1
effect@beta
Code snippetCode snippet
4.0.0-beta.5712.77MNoneAll errors30 μs
18.35x
stat_1
valibot
Code snippetCode snippet
1.3.19.22MNoneAll errors28 μs
19.3x
stat_1
typia
Code snippetCode snippet
12.0.2287.74KPrecompiledAll errors11 μs
52.18x
stat_2
ata-validator
Code snippetCode snippet
0.12.1740JITAll errors9 μs
61.86x
stat_2
sury
Code snippetCode snippet
11.0.0-alpha.4183.21KJITAll errors8 μs
68.11x
stat_2
effect
Code snippetCode snippet
3.21.212.77MNoneAbort early5 μs
113.34x
stat_3
joi
Code snippetCode snippet
18.1.219.33MNoneAll errors4 μs
123.35x
stat_3
Created by eskimojo for Open Circle

Preferences

Style
Theme
NPM browser