node/benchmark/esm
Joyee Cheung 4eeeab09f0
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: https://github.com/nodejs/node/pull/55238
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
2024-10-09 14:16:01 +00:00
..
cjs-parse.js
detect-esm-syntax.js benchmark: rewrite detect-esm-syntax benchmark 2024-10-09 14:16:01 +00:00
esm-legacyMainResolve.js
esm-loader-defaultResolve.js
esm-loader-import.js
import-meta.js
require-esm.js benchmark: add require-esm benchmark 2024-07-11 18:59:30 +00:00