node/benchmark/esm
Joyee Cheung 4e23d6904c
benchmark: rewrite import.meta benchmark
This is a ESM benchmark, rewrite it so that we are directly
benchmarking the ESM import.meta paths and using number of
loads for op/s calculation, instead of doing it in startup
benchmarks and nesting number of process/workers spawn
for op/s calculation.

PR-URL: https://github.com/nodejs/node/pull/50683
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Vinícius Lourenço Claro Cardoso <contact@viniciusl.com.br>
2023-11-18 00:46:42 +00:00
..
cjs-parse.js benchmark: use tmpdir.resolve() 2023-08-30 09:55:20 +00:00
detect-esm-syntax.js esm: detect ESM syntax in ambiguous JavaScript 2023-10-20 15:44:56 +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