Performance Benchmarks
ZNTC compares transpile and bundle performance against esbuild, SWC, Bun, Rolldown, Rspack, and related tools.
Environment
Section titled “Environment”- Platform:
darwin arm64 - Baseline date: 2026-05-06
- CLI:
bench.ts, 5-run median, direct CLI binary execution without npx overhead - NAPI / WASM / CLI:
napi-bench.ts, 3 warmups + 10-run median - Bundle perf:
bundle-perf.ts, 5 warmups + 20-run median, CI-style same-run ZNTC/Rolldown/Rspack comparison - Pipeline:
pipeline.ts, 5-run median, profile total
Lower values are faster. The number at the end of each bar is median wall time.
How to Run
Section titled “How to Run”zig build -Doptimize=ReleaseFastzig build napizig build wasm
bun run tests/benchmark/bench.tsbun run tests/benchmark/napi-bench.tsbun run tests/benchmark/bundle-perf.ts --no-fail --output bundle-perf.jsonbun run tests/benchmark/pipeline.ts