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
    • assignment_turned_in
      TypeScript

  • JSON Schema

    • data_object
      Schema to JSON
    • code
      JSON to Schema
    • verified
      Compliance

    • deployed_code
      Libraries

    • article
      Blog
Expand sidebarExpand sidebar
Benchmarks/StringString
github
GitHubGitHub
DiscordDiscord
PreferencesPreferences

Validating different string formats.

Copy to clipboardCopy to clipboard
import * as v from "valibot"; const url = v.parse( v.pipe(v.string(), v.url()), data, );
Copy to clipboardCopy to clipboard
import * as v from "valibot"; const url = v.parse(v.pipe(v.string(), v.url()), data);
Format
  • calendar_clockDatetime
  • calendar_todayDate
  • scheduleTime
  • date_rangeDuration
  • emailEmail
  • linkURL
  • fingerprintUUID
  • wifiIPv4
  • wifiIPv6
Data
  • errorInvalid
  • check_circleValid
Optimizations
  • flash_offNone
  • codeJIT
  • buildPrecompiled
LibrarysortVersiondownload/wksortOptimizationsMeanarrow_upwardCompare
ata-validator
Code snippetCode snippet
new Validator({ type: "string", format: "email" })
1.65.051.07KJIT48 ns
typia
Code snippetCode snippet
string & tags.Format<"email">
15.5.0671.92KPrecompiled49 ns
1.02x
stat_minus_1
@mionjs/run-types
Code snippetCode snippet
createValidateFn<TF.Email>()
0.20.099Precompiled58 ns
1.21x
stat_minus_1
ajv
Code snippetCode snippet
ajv.compile({ type: "string", format: "email" })
8.20.0535.13MJIT63 ns
1.3x
stat_minus_1
@paseri/paseri
Code snippetCode snippet
p.string().email()
1.9.7136None67 ns
1.39x
stat_minus_1
@railway-ts/pipelines
Code snippetCode snippet
chain(string(), email())
0.6.02.06KNone89 ns
1.86x
stat_minus_1
sury
Code snippetCode snippet
S.email
11.1.0609.62KJIT117 ns
2.44x
stat_minus_1
arktype
Code snippetCode snippet
type("string.email")
2.2.103.19MJIT128 ns
2.66x
stat_minus_1
valibot
Code snippetCode snippet
v.pipe(v.string(), v.email())
1.5.035.07MNone230 ns
4.79x
stat_minus_1
typebox
Code snippetCode snippet
Type.String({ format: "email" })
1.4.716.76MJIT311 ns
6.46x
stat_minus_1
zod/mini
Code snippetCode snippet
z.email()
4.6.7462.8MJIT426 ns
8.86x
stat_minus_1
zod/v3
Code snippetCode snippet
z.string().email()
4.6.7462.8MNone719 ns
14.96x
stat_minus_1
zod
Code snippetCode snippet
z.email()
4.6.7462.8MJIT862 ns
17.92x
stat_minus_1
joi
Code snippetCode snippet
Joi.string().email()
18.3.233.59MNone1 μs
21.12x
stat_minus_1
@sapphire/shapeshift
Code snippetCode snippet
s.string().email()
6.0.12.42MNone2 μs
40.7x
stat_minus_1
yup
Code snippetCode snippet
yup.string().email()
1.7.116.38MNone7 μs
139.47x
stat_minus_3
Created by eskimojo for Open Circle

Preferences

Style
Theme
NPM browser
Code ligatures