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
Libraryarrow_upwardVersionDownloads (/wk)sortOptimizationsError typeMeansortCompare
@railway-ts/pipelines
Code snippetCode snippet
0.1.2981NoneAll errors31 μs
arktype
Code snippetCode snippet
2.2.0824.7KJITAll errors96 μs
3.14x
stat_minus_1
ata-validator
Code snippetCode snippet
0.12.1740JITAll errors9 μs
3.44x
stat_1
decoders
Code snippetCode snippet
2.9.341.68KNoneAll errors77 μs
2.5x
stat_minus_1
effect
Code snippetCode snippet
3.21.212.77MNoneAbort early5 μs
6.3x
stat_2
effect
Code snippetCode snippet
3.21.212.77MNoneAll errors79 μs
2.58x
stat_minus_1
effect@beta
Code snippetCode snippet
4.0.0-beta.5712.77MNoneAll errors30 μs
1.02x
stat_1
effect@beta
Code snippetCode snippet
4.0.0-beta.5712.77MNoneAbort early30 μs
1.02x
stat_1
joi
Code snippetCode snippet
18.1.219.33MNoneAll errors4 μs
6.86x
stat_2
sury
Code snippetCode snippet
11.0.0-alpha.4183.21KJITAll errors8 μs
3.79x
stat_1
typia
Code snippetCode snippet
12.0.2287.74KPrecompiledAll errors11 μs
2.9x
stat_1
valibot
Code snippetCode snippet
1.3.19.22MNoneAll errors28 μs
1.07x
stat_1
yup
Code snippetCode snippet
1.7.110.79MNoneAll errors549 μs
17.98x
stat_minus_3
zod
Code snippetCode snippet
4.3.6162.73MJITAll errors75 μs
2.44x
stat_minus_1
zod/mini
Code snippetCode snippet
4.3.6162.73MJITAll errors71 μs
2.34x
stat_minus_1
zod/v3
Code snippetCode snippet
4.3.6162.73MNoneAll errors34 μs
1.12x
stat_minus_1
Created by eskimojo for Open Circle

Preferences

Style
Theme
NPM browser