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

  • 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.21.02.75KJIT72 ns
ajv
Code snippetCode snippet
ajv.compile({ type: "string", format: "email" })
8.20.0273.1MJIT96 ns
1.34x
stat_minus_1
arktype
Code snippetCode snippet
type("string.email")
2.2.31.48MJIT122 ns
1.71x
stat_minus_1
typebox
Code snippetCode snippet
Type.String({ format: "email" })
1.3.309.44MJIT506 ns
7.07x
stat_minus_1
zod/mini
Code snippetCode snippet
z.email()
4.6.5209.22MJIT528 ns
7.38x
stat_minus_1
zod
Code snippetCode snippet
z.email()
4.6.5209.22MJIT613 ns
8.57x
stat_minus_1
sury
Code snippetCode snippet
S.email
11.0.0333.97KJIT6 μs
90.31x
stat_minus_3
Created by eskimojo for Open Circle

Preferences

Style
Theme
NPM browser
Code ligatures