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: "ipv6" })
1.27.12.4KJIT76 ns
@paseri/paseri
Code snippetCode snippet
p.string().ip({ version: 6 })
1.9.7161None132 ns
1.73x
stat_minus_1
arktype
Code snippetCode snippet
type("string.ip.v6")
2.2.31.35MJIT134 ns
1.76x
stat_minus_1
zod/mini
Code snippetCode snippet
z.ipv6()
4.6.5211.93MJIT209 ns
2.75x
stat_minus_1
typia
Code snippetCode snippet
string & tags.Format<"ipv6">
14.0.6234.4KPrecompiled222 ns
2.92x
stat_minus_1
valibot
Code snippetCode snippet
v.pipe(v.string(), v.ipv6())
1.5.013.37MNone250 ns
3.29x
stat_minus_1
zod
Code snippetCode snippet
z.ipv6()
4.6.5211.93MJIT265 ns
3.49x
stat_minus_1
ajv
Code snippetCode snippet
ajv.compile({ type: "string", format: "ipv6" })
8.20.0287.33MJIT277 ns
3.65x
stat_minus_1
typebox
Code snippetCode snippet
Type.String({ format: "ipv6" })
1.3.348.19MJIT651 ns
8.56x
stat_minus_1
zod/v3
Code snippetCode snippet
z.string().ip({ version: "v6" })
4.6.5211.93MNone1 μs
17.03x
stat_minus_1
joi
Code snippetCode snippet
Joi.string().ip({ version: "ipv6" })
18.2.919.39MNone2 μs
29.16x
stat_minus_2
@sapphire/shapeshift
Code snippetCode snippet
s.string().ipv6()
5.0.01.02MNone4 μs
47.51x
stat_minus_3
sury
Code snippetCode snippet
S.ipv6
11.0.0314.95KJIT4 μs
52.44x
stat_minus_3
Created by eskimojo for Open Circle

Preferences

Style
Theme
NPM browser
Code ligatures