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: "ipv4" })
1.27.12.7KJIT62 ns
typia
Code snippetCode snippet
string & tags.Format<"ipv4">
14.0.6241.88KPrecompiled69 ns
1.13x
stat_minus_1
@paseri/paseri
Code snippetCode snippet
p.string().ip({ version: 4 })
1.9.7156None98 ns
1.6x
stat_minus_1
arktype
Code snippetCode snippet
type("string.ip.v4")
2.2.31.38MJIT99 ns
1.6x
stat_minus_1
ajv
Code snippetCode snippet
ajv.compile({ type: "string", format: "ipv4" })
8.20.0287.89MJIT104 ns
1.7x
stat_minus_1
valibot
Code snippetCode snippet
v.pipe(v.string(), v.ipv4())
1.5.013.51MNone204 ns
3.31x
stat_minus_1
zod/mini
Code snippetCode snippet
z.ipv4()
4.6.5213.87MJIT556 ns
9.04x
stat_minus_1
typebox
Code snippetCode snippet
Type.String({ format: "ipv4" })
1.3.348.38MJIT566 ns
9.2x
stat_minus_1
zod
Code snippetCode snippet
z.ipv4()
4.6.5213.87MJIT680 ns
11.06x
stat_minus_1
zod/v3
Code snippetCode snippet
z.string().ip({ version: "v4" })
4.6.5213.87MNone1 μs
19.03x
stat_minus_1
joi
Code snippetCode snippet
Joi.string().ip({ version: "ipv4" })
18.2.919.57MNone2 μs
34.71x
stat_minus_2
@sapphire/shapeshift
Code snippetCode snippet
s.string().ipv4()
5.0.01.03MNone4 μs
56.99x
stat_minus_3
sury
Code snippetCode snippet
S.ipv4
11.0.0319.72KJIT4 μs
63.15x
stat_minus_3
Created by eskimojo for Open Circle

Preferences

Style
Theme
NPM browser
Code ligatures