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
@paseri/paseri
Code snippetCode snippet
p.string().ip({ version: 6 })
1.9.7319None110 ns
valibot
Code snippetCode snippet
v.pipe(v.string(), v.ipv6())
1.5.0n/aNone162 ns
1.48x
stat_minus_1
zod/v3
Code snippetCode snippet
z.string().ip({ version: "v6" })
4.6.7n/aNone810 ns
7.36x
stat_minus_1
joi
Code snippetCode snippet
Joi.string().ip({ version: "ipv6" })
18.3.2n/aNone1 μs
10.94x
stat_minus_2
@sapphire/shapeshift
Code snippetCode snippet
s.string().ipv6()
5.0.0n/aNone3 μs
26.89x
stat_minus_3
Created by eskimojo for Open Circle

Preferences

Style
Theme
NPM browser
Code ligatures