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
ajv
Code snippetCode snippet
ajv.compile({ type: "string", format: "uuid" })
8.20.0520.65MJIT52 ns
ata-validator
Code snippetCode snippet
new Validator({ type: "string", format: "uuid" })
1.63.157.16KJIT53 ns
1.02x
stat_minus_1
sury
Code snippetCode snippet
S.uuid
11.1.0394.22KJIT55 ns
1.06x
stat_minus_1
arktype
Code snippetCode snippet
type("string.uuid")
2.2.92.97MJIT67 ns
1.29x
stat_minus_1
typebox
Code snippetCode snippet
Type.String({ format: "uuid" })
1.4.516.74MJIT491 ns
9.45x
stat_minus_3
zod/mini
Code snippetCode snippet
z.uuid()
4.6.7454.18MJIT515 ns
9.91x
stat_minus_3
zod
Code snippetCode snippet
z.uuid()
4.6.7454.18MJIT556 ns
10.7x
stat_minus_3
Created by eskimojo for Open Circle

Preferences

Style
Theme
NPM browser
Code ligatures