diff options
author | 2022-01-22 21:19:18 -0800 | |
---|---|---|
committer | 2022-01-22 21:19:18 -0800 | |
commit | da83583cdf60bd90dd40aacda26b1850f245ac6e (patch) | |
tree | 07586aae157742618790405afaf21d52c5a7128e /bench/snippets/realpath.mjs | |
parent | 4d9ae0df06c5506b16fe7b37d36082c441f37c1c (diff) | |
download | bun-da83583cdf60bd90dd40aacda26b1850f245ac6e.tar.gz bun-da83583cdf60bd90dd40aacda26b1850f245ac6e.tar.zst bun-da83583cdf60bd90dd40aacda26b1850f245ac6e.zip |
Create realpath.mjs
Diffstat (limited to 'bench/snippets/realpath.mjs')
-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); |