This website requires JavaScript.
Explore
Help
Register
Sign In
daohualiuxiang
/
node
mirror of
https://github.com/nodejs/node.git
Watch
1
Star
0
Fork
You've already forked node
0
Code
Issues
Packages
Projects
Releases
Wiki
Activity
5ae8ea489d
node
/
benchmark
/
fixtures
/
esm-dir-file.mjs
3 lines
90 B
JavaScript
Raw
Normal View
History
Unescape
Escape
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 08:46:42 +08:00
export
const
dirname
=
import
.
meta
.
dirname
;
export
const
filename
=
import
.
meta
.
filename
;