mirror of
https://github.com/danbulant/oxc
synced 2026-05-19 12:19:15 +00:00
Add NodeJS parser to benchmarks. Previous attempt #2724 did not work due CodSpeed producing very inaccurate results (https://github.com/CodSpeedHQ/action/issues/96). This version runs the actual benchmarks without CodSpeed's instrumentation. Then another faux-benchmark runs within Codspeed's instrumented action and just performs meaningless calculations in a loop for as long as is required to take same amount of time as the original uninstrumented benchmarks took. It's unfortunate that we therefore don't get flame graphs on CodSpeed, but this seems to be the best we can do for now. |
||
|---|---|---|
| .. | ||
| 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 | ||
Installation
corepack enable
Build
pnpm install
pnpm run build
Test
pnpm test