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
| Library | Version | Optimizations | Mean | Compare | |||
|---|---|---|---|---|---|---|---|
typia (createIs) | Code snippet | 10.0.2 | Precompiled | 45 ns | |||
typia (createValidate) | Code snippet | 10.0.2 | Precompiled | 112 ns | 2.48x |