oxc/napi/parser
overlookmotel af47aebc7c
chore(napi): add oxc-parser to benchmarks (#2724)
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.
2024-03-15 19:45:02 +08:00
..
src refactor(ast): refactor Trivias API - have less noise around it (#2692) 2024-03-12 20:16:36 +08:00
.gitignore refactor: change @oxidation-compiler/napi to oxc-parser (#1209) 2023-11-10 06:17:05 +00:00
build.rs refactor: change @oxidation-compiler/napi to oxc-parser (#1209) 2023-11-10 06:17:05 +00:00
Cargo.toml refactor: remove unused dependencies (#2718) 2024-03-14 17:50:31 +08:00
index.d.ts New tool: oxc_module_lexer (#2650) 2024-03-09 23:23:55 +08:00
index.js New tool: oxc_module_lexer (#2650) 2024-03-09 23:23:55 +08:00
package.json chore(napi): add oxc-parser to benchmarks (#2724) 2024-03-15 19:45:02 +08:00
parse.bench.mjs chore(napi): add oxc-parser to benchmarks (#2724) 2024-03-15 19:45:02 +08:00
pnpm-lock.yaml chore(napi): add oxc-parser to benchmarks (#2724) 2024-03-15 19:45:02 +08:00
README.md feat: Release resolver with NAPI (#1212) 2023-11-10 15:25:17 +00:00
test.mjs feat(napi): return comments (#2469) 2024-02-21 22:43:40 +08:00
test_buffer.js feat(parser/napi): add flexbuffer to AST transfer (2x speedup) (#1680) 2023-12-15 02:52:33 +00:00
test_module_lexer.mjs New tool: oxc_module_lexer (#2650) 2024-03-09 23:23:55 +08:00
vitest.config.mjs chore(napi): add oxc-parser to benchmarks (#2724) 2024-03-15 19:45:02 +08:00

Installation

corepack enable

Build

pnpm install
pnpm run build

Test

pnpm test