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
yup
Code snippetCode snippet
yup.string().email()
1.7.18.43MNone11 μs
sury
Code snippetCode snippet
S.email
11.0.0317.45KJIT4 μs
2.75x
stat_1
@sapphire/shapeshift
Code snippetCode snippet
s.string().email()
5.0.01MNone4 μs
3.06x
stat_1
joi
Code snippetCode snippet
Joi.string().email()
18.2.919.57MNone2 μs
6.23x
stat_1
zod/v3
Code snippetCode snippet
z.string().email()
4.6.5214.04MNone1 μs
9.86x
stat_1
zod
Code snippetCode snippet
z.email()
4.6.5214.04MJIT802 ns
13.49x
stat_1
zod/mini
Code snippetCode snippet
z.email()
4.6.5214.04MJIT720 ns
15.04x
stat_1
typebox
Code snippetCode snippet
Type.String({ format: "email" })
1.3.338.38MJIT558 ns
19.38x
stat_1
valibot
Code snippetCode snippet
v.pipe(v.string(), v.email())
1.5.013.47MNone249 ns
43.41x
stat_2
@railway-ts/pipelines
Code snippetCode snippet
chain(string(), email())
0.1.29119None175 ns
61.89x
stat_2
ajv
Code snippetCode snippet
ajv.compile({ type: "string", format: "email" })
8.20.0280.78MJIT136 ns
79.85x
stat_2
@paseri/paseri
Code snippetCode snippet
p.string().email()
1.9.7167None126 ns
85.74x
stat_3
arktype
Code snippetCode snippet
type("string.email")
2.2.31.39MJIT122 ns
88.85x
stat_3
typia
Code snippetCode snippet
string & tags.Format<"email">
14.0.6241.88KPrecompiled94 ns
114.77x
stat_3
ata-validator
Code snippetCode snippet
new Validator({ type: "string", format: "email" })
1.25.03.94KJIT87 ns
123.73x
stat_3
Created by eskimojo for Open Circle

Preferences

Style
Theme
NPM browser
Code ligatures