LogoLogo

Schema Benchmarks

    • home
      Home

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

    • 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 snippet
string & tags.Format<"email">
11.0.3241KPrecompiled82 ns
arktype
Code snippet
type("string.email")
2.1.29751KJIT94 ns
1.15x
stat_minus_1
@railway-ts/pipelines
Code snippet
chain(string(), email())
0.1.25750None164 ns
1.99x
stat_minus_1
valibot
Code snippet
v.pipe(v.string(), v.email())
1.2.06.3MNone280 ns
3.41x
stat_minus_1
typebox
Code snippet
Type.String({ format: "email" })
1.1.1178KJIT586 ns
7.13x
stat_minus_1
joi
Code snippet
Joi.string().email()
18.0.217MNone2 μs
28.21x
stat_minus_1
sury
Code snippet
S.email(S.string)
11.0.0-alpha.490KJIT7 μs
87.3x
stat_minus_2
zod/mini
Code snippet
z.email()
4.3.6101MJIT11 μs
135.02x
stat_minus_2
zod
Code snippet
z.email()
4.3.6101MJIT16 μs
194.52x
stat_minus_3
yup
Code snippet
yup.string().email()
1.7.19.8MNone21 μs
251.22x
stat_minus_3
Created by eskimojo for Open Circle