From da83583cdf60bd90dd40aacda26b1850f245ac6e Mon Sep 17 00:00:00 2001 From: Jarred Sumner Date: Sat, 22 Jan 2022 21:19:18 -0800 Subject: Create realpath.mjs --- bench/snippets/realpath.mjs | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 bench/snippets/realpath.mjs 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); -- cgit v1.2.3