benchmark: rewrite detect-esm-syntax benchmark · nodejs/node@a455372 · GitHub
Skip to content

Commit a455372

Browse files
joyeecheungmarco-ippolito
authored andcommitted
benchmark: rewrite detect-esm-syntax benchmark
Syntax detection has been unflagged so it's no longer meaningful to toggle the detection based on CLI flags. It was also previously benchmarking cached module imports which isn't very meaningful for subsequent loads. This patch updates the benchmark to toggle the detection based on the presence of type field in the package.json, and generates fixtures to benchmark fresh module loads. PR-URL: #55238 Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
1 parent b963db9 commit a455372

1 file changed

Lines changed: 16 additions & 17 deletions

File tree

benchmark/esm/detect-esm-syntax.js

Lines changed: 16 additions & 17 deletions

0 commit comments

Comments
 (0)