Skip to content

Instantly share code, notes, and snippets.

Last active January 5, 2024 09:37
Show Gist options
  • Save colinhacks/e3095172a883a9ee9c972caf33b5f54f to your computer and use it in GitHub Desktop.
Save colinhacks/e3095172a883a9ee9c972caf33b5f54f to your computer and use it in GitHub Desktop.
Benchmark testing libraries against Zod's test suite
# requires hyperfine and Bun v0.7 or later
# https://github.com/sharkdp/hyperfine
git clone git@github.com:colinhacks/zod.git
cd zod
bun install
hyperfine --warmup 3 --runs 10 \
"bun test src" \
"npx vitest --config configs/vitest.config.ts" \
"npx jest -c configs/babel-jest.config.json" \
"npx jest -c configs/ts-jest.config.json" \
"npx jest -c configs/swc-jest.config.json"
Copy link

Bun v0.7 isn't out yet is it?

Copy link
Author

Bun 1.0 is already out

Copy link

Thanks sorry!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment