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/ValidationValidation
github
GitHubGitHub
DiscordDiscord
PreferencesPreferences

Checking if a given value matches the schema. This is different to parsing because it doesn't return a new value.

Copy to clipboardCopy to clipboard
import * as v from "valibot"; import { personSchema } from "./schemas"; if (v.is(personSchema, data)) { // data is narrowed to Person }
Data
errorInvalidcheck_circleValid
Optimizations
flash_offNonecodeJITbuildPrecompiled
LibrarysortVersionDownloads (/wk)arrow_upwardOptimizationsMeansortCompare
ajv (compile)
Code snippetCode snippet
8.20.0290.87MJIT80 ns
ajv (validate)
Code snippetCode snippet
8.20.0290.87MJIT119 ns
1.48x
stat_minus_1
effect
Code snippetCode snippet
3.21.212.57MNone745 ns
9.29x
stat_minus_1
effect@beta
Code snippetCode snippet
4.0.0-beta.5912.57MNone1 μs
15.34x
stat_minus_1
yup
Code snippetCode snippet
1.7.110.46MNone97 μs
1_213.68x
stat_minus_2
valibot
Code snippetCode snippet
1.3.19.33MNone747 ns
9.31x
stat_minus_1
superstruct
Code snippetCode snippet
2.0.24.46MNone10 μs
129.05x
stat_minus_1
superstruct (schema.is)
Code snippetCode snippet
2.0.24.46MNone10 μs
129.97x
stat_minus_1
typebox
Code snippetCode snippet
1.1.344.12MJIT4 μs
55.29x
stat_minus_1
typebox (compile)
Code snippetCode snippet
1.1.344.12MJIT65 ns
1.24x
stat_1
typebox (schema compile)
Code snippetCode snippet
1.1.344.12MJIT66 ns
1.21x
stat_1
typebox (schema)
Code snippetCode snippet
1.1.344.12MJIT5 μs
63.79x
stat_minus_1
io-ts
Code snippetCode snippet
2.2.222.99MNone123 ns
1.54x
stat_minus_1
arktype
Code snippetCode snippet
2.2.0842.88KJIT776 ns
9.69x
stat_minus_1
@sapphire/shapeshift
Code snippetCode snippet
4.0.0821.91KNone284 μs
3_538.53x
stat_minus_3
typia (createIs)
Code snippetCode snippet
12.0.2287.98KPrecompiled48 ns
1.69x
stat_1
typia (is)
Code snippetCode snippet
12.0.2287.98KPrecompiled63 ns
1.28x
stat_1
runtypes
Code snippetCode snippet
7.0.4287.84KNone200 μs
2_493.61x
stat_minus_3
ata-validator
Code snippetCode snippet
0.12.1514JIT48 ns
1.66x
stat_1
@railway-ts/pipelines
Code snippetCode snippet
0.1.29112None651 ns
8.13x
stat_minus_1
Created by eskimojo for Open Circle

Preferences

Style
Theme
NPM browser