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: "time" })
1.27.12.7KJIT55 ns
typia
Code snippetCode snippet
string & tags.Format<"time">
14.0.6241.88KPrecompiled73 ns
1.33x
stat_minus_1
@paseri/paseri
Code snippetCode snippet
p.string().time()
1.9.7167None86 ns
1.56x
stat_minus_1
ajv
Code snippetCode snippet
ajv.compile({ type: "string", format: "time" })
8.20.0287.89MJIT105 ns
1.9x
stat_minus_1
@railway-ts/pipelines
Code snippetCode snippet
chain(string(), isoTime())
0.1.29121None157 ns
2.84x
stat_minus_1
typebox
Code snippetCode snippet
Type.String({ format: "time" })
1.3.348.38MJIT536 ns
9.72x
stat_minus_1
sury
Code snippetCode snippet
S.isoTime
11.0.0319.72KJIT4 μs
71.16x
stat_minus_3
Created by eskimojo for Open Circle

Preferences

Style
Theme
NPM browser
Code ligatures