ArkType 3.0's dynamic validator validated my test object at 13.4 million per second, 4.4x Zod 4's 3.03 million and 1.28x Zod's own z.compile at 10.5 million. On fully invalid input it was 3.1x Zod — and 35x slower than its own valid path. That second number is the one I'd budget around.
ArkType 3.0 shipped today with a bigger claim: the precompiled build beats Zod 4 in all 32 of their benchmark scenarios by a median of 15x, and z.compile by a median of 5.3x. I did not test the precompiler — it needs a bundler plugin. I tested the no-build-step dynamic mode, which is what you get from npm install arktype (3.0.2) against zod 4.6.7 on Node 24. If dynamic mode is already this far ahead, the precompile claim is at least pointing in a plausible direction.
The setup
One object, five fields, three failure shapes. Both libraries reported the same five issues on the all-bad input, so this is not a case of one doing less work:
import { type } from "arktype"; import { z } from "zod"; const A = type({ name: "string>0", email: "string.email", "age?": "number.integer>=0", tags: "string[]", role: "'admin'|'user'" }); const Z = z.object({ name: z.string().min(1), email: z.email(), age: z.number().int().min(0).optional(), tags: z.array(z.string()), role: z.enum(["admin", "user"]) }); const ZC = z.compile(Z); Median of 5 runs, warmup excluded, and — this matters — the result consumed into a sink (r.name.length + r.tags.length on success, issues.length on failure):
valid/s all-bad/s last-field-bad/s ArkType dynamic 13,435,199 385,722 883,586 Zod 4 3,027,750 124,598 265,898 Zod z.compile 10,464,895 118,102 243,310 ArkType / Zod 4.44x 3.10x 3.32x ArkType / z.compile 1.28x 3.27x 3.63x My first benchmark lied, and yours might too
My first pass only checked result instanceof type.errors and threw the result away. It reported ArkType's all-bad path at 29.6 million/sec — faster than its valid path, which should have been the tell. Once the sink actually read issues.length, the same code measured 386k/sec, a 77x difference. Whether that was V8 eliminating work whose result nobody consumed or lazy error materialization, the lesson is the same: a validator benchmark that doesn't consume the errors is measuring your benchmark harness. I would apply that suspicion to any "15x" headline, including the ones I like.
The error path is the product
Notice z.compile: it closes most of the valid-path gap (10.5M vs 13.4M) and does nothing for invalid input — slightly worse than plain Zod there. Compilation optimizes the happy path; error construction is apparently not part of the deal.
For ArkType, invalid input costs 35x the valid path. For Zod, 24x. In absolute terms ArkType still wins every row I measured. But if your endpoint's job is rejecting garbage — public forms, webhook receivers, agent tool inputs where the model hallucinates arguments — your throughput ceiling is the all-bad column, roughly 386k/sec per core here, not the 13.4M in the headline. Rate-limit and load-test against the column that matches your traffic.
Two costs from the release post worth knowing before switching: dynamic ArkType is 98.1 kB gzipped, up from 47.8 kB in 2.2.9 — the small-bundle story now depends on precompiling. And validation is synchronous; async refinements move out of the schema.
Caveats: one schema shape, one machine, synthetic inputs, dynamic mode only. I did not verify the 15x precompiled claim, the 1.19 kB bundle claim, or startup numbers. Email validation semantics may differ subtly between the libraries in ways my inputs didn't probe.
Sources
- ArkType, "Announcing ArkType 3.0," December 3, 2026: https://arktype.io/docs/blog/3.0
- Versions measured locally: arktype 3.0.2, zod 4.6.7, Node v24.22.1

