diff options
-rw-r--r-- | bench/snippets/realpath.mjs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bench/snippets/realpath.mjs b/bench/snippets/realpath.mjs new file mode 100644 index 000000000..9c3793d80 --- /dev/null +++ b/bench/snippets/realpath.mjs @@ -0,0 +1,4 @@ +import { realpathSync } from "node:fs"; +const count = parseInt(process.env.ITERATIONS || "1", 10) || 1; +const arg = process.argv[process.argv.length - 1]; +for (let i = 0; i < count; i++) realpathSync(arg); |