diff options
Diffstat (limited to 'bench/exists.js')
-rw-r--r-- | bench/exists.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bench/exists.js b/bench/exists.js new file mode 100644 index 000000000..1d1d6cfe0 --- /dev/null +++ b/bench/exists.js @@ -0,0 +1,6 @@ +const { existsSync } = require("fs"); +const cwd = process.cwd(); + +const count = parseInt(process.env.ITERATIONS || "1", 10) || 1; + +for (let i = 0; i < count; i++) existsSync(cwd); |