LogoLogo

Schema Benchmarks

    • home
      Home

    • download_2
      Download
    • timer
      Initialization
    • check_circle
      Validation
    • output_circle
      Parsing
    • schema
      Standard Schema
    • format_quote
      String
    • error
      Stack

    • article
      Blog
Code styleCode style
Normal styleNormal style
System themeSystem theme
Light themeLight theme
Dark themeDark theme
Expand sidebarExpand sidebar
Benchmarks/StringString
Code styleCode style
Normal styleNormal style
System themeSystem theme
Light themeLight theme
Dark themeDark theme
github
GitHubGitHub
DiscordDiscord

Validating different string formats.

import * as v from "valibot";
const url = v.parse(v.pipe(v.string(), v.url()), data);
Format
calendar_clockDatetimecalendar_todayDatescheduleTimedate_rangeDurationemailEmaillinkURLfingerprintUUIDwifiIPv4wifiIPv6
Data
errorInvalidcheck_circleValid
Optimizations
flash_offNonecodeJITbuildPrecompiled
LibrarysortVersionDownloads (/wk)sortOptimizationsMeanarrow_upwardCompare
typia
Code snippetCode snippet
string & tags.Format<"email">
11.0.3244KPrecompiled98 ns
arktype
Code snippetCode snippet
type("string.email")
2.1.29972KJIT106 ns
1.09x
stat_minus_1
@railway-ts/pipelines
Code snippetCode snippet
chain(string(), email())
0.1.27155None183 ns
1.87x
stat_minus_1
valibot
Code snippetCode snippet
v.pipe(v.string(), v.email())
1.2.06.6MNone289 ns
2.96x
stat_minus_1
typebox
Code snippetCode snippet
Type.String({ format: "email" })
1.1.5204KJIT657 ns
6.72x
stat_minus_1
joi
Code snippetCode snippet
Joi.string().email()
18.0.218MNone2 μs
22.61x
stat_minus_1
sury
Code snippetCode snippet
S.email(S.string)
11.0.0-alpha.4148KJIT7 μs
74.49x
stat_minus_2
zod/mini
Code snippetCode snippet
z.email()
4.3.6106MJIT12 μs
122.3x
stat_minus_2
zod
Code snippetCode snippet
z.email()
4.3.6106MJIT17 μs
177.62x
stat_minus_3
yup
Code snippetCode snippet
yup.string().email()
1.7.110MNone21 μs
219.78x
stat_minus_3
Created by eskimojo for Open Circle