Logo

Schema Benchmarks

Collapse
    • homeHome

    • timerInitialization
    • check_circleValidation
    • output_circleParsing

    • download_2Download
Expand sidebar
Benchmarkschevron_rightInitialization

Creating a schema. This is usually a one time cost.

schemas.ts
import * as v from "valibot"; export const personSchema = v.object({ name: v.string(), age: v.number(), });
Optimizations
flash_offNonecodeJITbuildPrecompiled
LibraryVersionOptimizationsMeanCompare
typebox
Code snippet
Type.Object(...)
1.0.51None26 μs
valibot
Code snippet
v.object(...)
1.1.0None53 μs
2.08x
stat_minus_1
yup
Code snippet
object(...)
1.7.1None107 μs
4.18x
stat_minus_1
joi
Code snippet
object(...)
18.0.1None208 μs
8.13x
stat_minus_1
effect
Code snippet
Schema.struct(...)
3.19.3None539 μs
21.01x
stat_minus_3
arktype
Code snippet
type(...)
2.1.25None574 μs
22.36x
stat_minus_3
effect (decodeUnknownEither)
Code snippet
Schema.decodeUnknownEither(
  Schema.struct(...)
)
3.19.3None713 μs
27.82x
stat_minus_3
Created by eskimojo for Open Circle