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 benchmark: use tmpdir.resolve() 2023-08-30 09:55:20 +00:00
detect-esm-syntax.js benchmark: rewrite detect-esm-syntax benchmark 2024-10-09 14:16:01 +00:00
esm-legacyMainResolve.js benchmark: use tmpdir.resolve() 2023-08-30 09:55:20 +00:00
esm-loader-defaultResolve.js benchmark: use tmpdir.resolve() 2023-08-30 09:55:20 +00:00
esm-loader-import.js test,benchmark: use tmpdir.fileURL() 2023-08-21 16:42:03 +00:00
import-meta.js benchmark: rewrite import.meta benchmark 2023-11-18 00:46:42 +00:00
require-esm.js benchmark: add require-esm benchmark 2024-07-11 18:59:30 +00:00