From a9e4ff2029a769737982fcf7e0b7d76d35cf35e4 Mon Sep 17 00:00:00 2001 From: evan Date: Tue, 12 Jul 2022 04:40:12 -0400 Subject: cleanup benchmarks folder (#587) * cleanup benchmarks * run prettier --- bench/snippets/realpath.mjs | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 bench/snippets/realpath.mjs (limited to '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