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
Libraryarrow_upwardVersionDownloads (/wk)sortOptimizationsMeansortCompare
@railway-ts/pipelines
Code snippetCode snippet
0.1.29112None651 ns
@sapphire/shapeshift
Code snippetCode snippet
4.0.0821.91KNone284 μs
435.49x
stat_minus_3
ajv (compile)
Code snippetCode snippet
8.20.0290.87MJIT80 ns
8.13x
stat_1
ajv (validate)
Code snippetCode snippet
8.20.0290.87MJIT119 ns
5.48x
stat_1
arktype
Code snippetCode snippet
2.2.0842.88KJIT776 ns
1.19x
stat_minus_1
ata-validator
Code snippetCode snippet
0.12.1514JIT48 ns
13.48x
stat_1
effect
Code snippetCode snippet
3.21.212.57MNone745 ns
1.14x
stat_minus_1
effect@beta
Code snippetCode snippet
4.0.0-beta.5912.57MNone1 μs
1.89x
stat_minus_1
io-ts
Code snippetCode snippet
2.2.222.99MNone123 ns
5.28x
stat_1
runtypes
Code snippetCode snippet
7.0.4287.84KNone200 μs
306.89x
stat_minus_3
superstruct
Code snippetCode snippet
2.0.24.46MNone10 μs
15.88x
stat_minus_1
superstruct (schema.is)
Code snippetCode snippet
2.0.24.46MNone10 μs
16x
stat_minus_1
typebox
Code snippetCode snippet
1.1.344.12MJIT4 μs
6.81x
stat_minus_1
typebox (compile)
Code snippetCode snippet
1.1.344.12MJIT65 ns
10.09x
stat_1
typebox (schema compile)
Code snippetCode snippet
1.1.344.12MJIT66 ns
9.81x
stat_1
typebox (schema)
Code snippetCode snippet
1.1.344.12MJIT5 μs
7.85x
stat_minus_1
typia (createIs)
Code snippetCode snippet
12.0.2287.98KPrecompiled48 ns
13.71x
stat_1
typia (is)
Code snippetCode snippet
12.0.2287.98KPrecompiled63 ns
10.39x
stat_1
valibot
Code snippetCode snippet
1.3.19.33MNone747 ns
1.15x
stat_minus_1
yup
Code snippetCode snippet
1.7.110.46MNone97 μs
149.37x
stat_minus_2
Created by eskimojo for Open Circle

Preferences

Style
Theme
NPM browser