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: "uuid" })
1.27.1n/aJIT58 ns
typia
Code snippetCode snippet
string & tags.Format<"uuid">
14.0.6234.4KPrecompiled68 ns
1.17x
stat_minus_1
arktype
Code snippetCode snippet
type("string.uuid")
2.2.3n/aJIT77 ns
1.32x
stat_minus_1
@paseri/paseri
Code snippetCode snippet
p.string().uuid()
1.9.7161None93 ns
1.59x
stat_minus_1
ajv
Code snippetCode snippet
ajv.compile({ type: "string", format: "uuid" })
8.20.0287.33MJIT98 ns
1.67x
stat_minus_1
@railway-ts/pipelines
Code snippetCode snippet
chain(string(), uuid())
0.1.29120None116 ns
1.99x
stat_minus_1
valibot
Code snippetCode snippet
v.pipe(v.string(), v.uuid())
1.5.0n/aNone227 ns
3.89x
stat_minus_1
zod/mini
Code snippetCode snippet
z.uuid()
4.6.5211.93MJIT540 ns
9.26x
stat_minus_1
typebox
Code snippetCode snippet
Type.String({ format: "uuid" })
1.3.348.19MJIT554 ns
9.49x
stat_minus_1
zod
Code snippetCode snippet
z.uuid()
4.6.5211.93MJIT729 ns
12.5x
stat_minus_1
zod/v3
Code snippetCode snippet
z.string().uuid()
4.6.5211.93MNone1 μs
19.09x
stat_minus_1
joi
Code snippetCode snippet
Joi.string().uuid()
18.2.9n/aNone2 μs
29.56x
stat_minus_1
@sapphire/shapeshift
Code snippetCode snippet
s.string().uuid()
5.0.0n/aNone4 μs
60.05x
stat_minus_1
sury
Code snippetCode snippet
S.uuid
11.0.0n/aJIT4 μs
66.56x
stat_minus_2
yup
Code snippetCode snippet
yup.string().uuid()
1.7.18.44MNone11 μs
181.95x
stat_minus_3
Created by eskimojo for Open Circle

Preferences

Style
Theme
NPM browser
Code ligatures