summaryrefslogtreecommitdiff
path: root/deps/node/benchmark/path/format-win32.js
diff options
context:
space:
mode:
Diffstat (limited to 'deps/node/benchmark/path/format-win32.js')
-rw-r--r--deps/node/benchmark/path/format-win32.js29
1 files changed, 0 insertions, 29 deletions
diff --git a/deps/node/benchmark/path/format-win32.js b/deps/node/benchmark/path/format-win32.js
deleted file mode 100644
index 65315c4d..00000000
--- a/deps/node/benchmark/path/format-win32.js
+++ /dev/null
@@ -1,29 +0,0 @@
-'use strict';
-const common = require('../common.js');
-const { win32 } = require('path');
-
-const bench = common.createBenchmark(main, {
- props: [
- ['C:\\', 'C:\\path\\dir', 'index.html', '.html', 'index'].join('|'),
- ],
- n: [1e6]
-});
-
-function main({ n, props }) {
- props = props.split('|');
- const obj = {
- root: props[0] || '',
- dir: props[1] || '',
- base: '',
- ext: props[3] || '',
- name: '',
- };
-
- bench.start();
- for (var i = 0; i < n; i++) {
- obj.base = `a${i}${props[2] || ''}`;
- obj.name = `a${i}${props[4] || ''}`;
- win32.format(obj);
- }
- bench.end(n);
-}