jsPerf.app is an online JavaScript performance benchmark test runner & jsperf.com mirror. It is a complete rewrite in homage to the once excellent jsperf.com now with hopefully a more modern & maintainable codebase.
jsperf.com URLs are mirrored at the same path, e.g:
https://jsperf.com/negative-modulo/2
Can be accessed at:
https://jsperf.app/negative-modulo/2
Testing Zod parsing performance
<script type="module" src="https://cdn.jsdelivr.net/npm/zod@3.21.4/lib/index.mjs">
import { z } from "https://cdn.jsdelivr.net/npm/zod@3.21.4/lib/index.mjs";
const schema = z.object({ a: z.string(), b: z.string().optional(), c: z.string().array().optional() })
Ready to run.
Test | Ops/sec | |
---|---|---|
safeParse an invalid schema |
| ready |
parse an invalid schema |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.