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)sortOptimizationsMeanarrow_upwardCompare
@sapphire/shapeshift
Code snippetCode snippet
4.0.0823.77KNone284 μs
runtypes
Code snippetCode snippet
7.0.4308.06KNone200 μs
1.42x
stat_1
yup
Code snippetCode snippet
1.7.110.86MNone97 μs
2.92x
stat_1
superstruct (schema.is)
Code snippetCode snippet
2.0.24.52MNone10 μs
27.23x
stat_1
superstruct
Code snippetCode snippet
2.0.24.52MNone10 μs
27.42x
stat_1
typebox (schema)
Code snippetCode snippet
1.1.344.05MJIT5 μs
55.47x
stat_1
typebox
Code snippetCode snippet
1.1.344.05MJIT4 μs
63.99x
stat_1
effect@beta
Code snippetCode snippet
4.0.0-beta.5912.89MNone1 μs
230.62x
stat_1
arktype
Code snippetCode snippet
2.2.0847.35KJIT776 ns
365.32x
stat_1
valibot
Code snippetCode snippet
1.3.19.5MNone747 ns
379.89x
stat_1
effect
Code snippetCode snippet
3.21.212.89MNone745 ns
380.73x
stat_1
@railway-ts/pipelines
Code snippetCode snippet
0.1.29101None651 ns
435.49x
stat_1
io-ts
Code snippetCode snippet
2.2.223.04MNone123 ns
2_297.3x
stat_2
ajv (validate)
Code snippetCode snippet
8.20.0297.27MJIT119 ns
2_387.32x
stat_2
ajv (compile)
Code snippetCode snippet
8.20.0297.27MJIT80 ns
3_538.53x
stat_2
typebox (schema compile)
Code snippetCode snippet
1.1.344.05MJIT66 ns
4_273.41x
stat_3
typebox (compile)
Code snippetCode snippet
1.1.344.05MJIT65 ns
4_395.25x
stat_3
typia (is)
Code snippetCode snippet
12.0.2290.14KPrecompiled63 ns
4_523.7x
stat_3
ata-validator
Code snippetCode snippet
0.12.1748JIT48 ns
5_871.72x
stat_3
typia (createIs)
Code snippetCode snippet
12.0.2290.14KPrecompiled48 ns
5_969.89x
stat_3
Created by eskimojo for Open Circle

Preferences

Style
Theme
NPM browser