mirror of
https://github.com/danbulant/oxc
synced 2026-05-19 12:19:15 +00:00
Closes #2616. Adds benchmarks for NodeJS NAPI build. Measurement includes `JSON.parse` of the AST on JS side, since that's how it'll be used 99% of the time. Benchmarks run against same files as Rust parser benchmarks, so we can see the overhead of transferring AST to JS. |
||
|---|---|---|
| .. | ||
| src | ||
| .gitignore | ||
| build.rs | ||
| Cargo.toml | ||
| index.d.ts | ||
| index.js | ||
| package.json | ||
| parse.bench.mjs | ||
| pnpm-lock.yaml | ||
| README.md | ||
| test.mjs | ||
| test_buffer.js | ||
| test_module_lexer.mjs | ||
| vitest.config.mjs | ||
Installation
corepack enable
Build
pnpm install
pnpm run build
Test
pnpm test