summaryrefslogtreecommitdiff
path: root/benchmark
diff options
context:
space:
mode:
authorAntoine du Hamel <duhamelantoine1995@gmail.com>2023-02-14 18:09:42 +0100
committerGitHub <noreply@github.com>2023-02-14 17:09:42 +0000
commit3acdeb1f7ace66cf3e18f932257fbeb1cf575478 (patch)
tree378ab631da22e02a15a1aa609f96badac8481d19 /benchmark
parentf46515c2f31902d2ca275d5eae0d5790d0cc212e (diff)
downloadnode-new-3acdeb1f7ace66cf3e18f932257fbeb1cf575478.tar.gz
benchmark: add trailing commas in `benchmark/path`
PR-URL: https://github.com/nodejs/node/pull/46628 Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com> Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
Diffstat (limited to 'benchmark')
-rw-r--r--benchmark/.eslintrc.yaml12
-rw-r--r--benchmark/path/basename-posix.js2
-rw-r--r--benchmark/path/basename-win32.js2
-rw-r--r--benchmark/path/dirname-posix.js2
-rw-r--r--benchmark/path/dirname-win32.js2
-rw-r--r--benchmark/path/extname-posix.js2
-rw-r--r--benchmark/path/extname-win32.js2
-rw-r--r--benchmark/path/format-posix.js2
-rw-r--r--benchmark/path/format-win32.js2
-rw-r--r--benchmark/path/isAbsolute-posix.js2
-rw-r--r--benchmark/path/isAbsolute-win32.js2
-rw-r--r--benchmark/path/join-posix.js2
-rw-r--r--benchmark/path/join-win32.js2
-rw-r--r--benchmark/path/makeLong-win32.js2
-rw-r--r--benchmark/path/normalize-posix.js2
-rw-r--r--benchmark/path/normalize-win32.js2
-rw-r--r--benchmark/path/parse-posix.js2
-rw-r--r--benchmark/path/parse-win32.js2
-rw-r--r--benchmark/path/relative-posix.js2
-rw-r--r--benchmark/path/relative-win32.js2
-rw-r--r--benchmark/path/resolve-posix.js2
-rw-r--r--benchmark/path/resolve-win32.js2
22 files changed, 21 insertions, 33 deletions
diff --git a/benchmark/.eslintrc.yaml b/benchmark/.eslintrc.yaml
index 6b97461975..aa014eec4e 100644
--- a/benchmark/.eslintrc.yaml
+++ b/benchmark/.eslintrc.yaml
@@ -6,15 +6,3 @@ env:
rules:
prefer-arrow-callback: error
-
-overrides:
- - files:
- - path/*.js
- rules:
- comma-dangle: [error, {
- arrays: always-multiline,
- exports: always-multiline,
- functions: only-multiline,
- imports: always-multiline,
- objects: only-multiline,
- }]
diff --git a/benchmark/path/basename-posix.js b/benchmark/path/basename-posix.js
index 6600068d4c..8478ce8734 100644
--- a/benchmark/path/basename-posix.js
+++ b/benchmark/path/basename-posix.js
@@ -15,7 +15,7 @@ const bench = common.createBenchmark(main, {
'/foo/bar/baz/asdf/quux.html',
['/foo/bar/baz/asdf/quux.html', '.html'].join('|'),
],
- n: [1e5]
+ n: [1e5],
});
function main({ n, pathext }) {
diff --git a/benchmark/path/basename-win32.js b/benchmark/path/basename-win32.js
index dc26a134e2..2d93fde453 100644
--- a/benchmark/path/basename-win32.js
+++ b/benchmark/path/basename-win32.js
@@ -15,7 +15,7 @@ const bench = common.createBenchmark(main, {
'\\foo\\bar\\baz\\asdf\\quux.html',
['\\foo\\bar\\baz\\asdf\\quux.html', '.html'].join('|'),
],
- n: [1e5]
+ n: [1e5],
});
function main({ n, pathext }) {
diff --git a/benchmark/path/dirname-posix.js b/benchmark/path/dirname-posix.js
index c98753562f..29c374dba9 100644
--- a/benchmark/path/dirname-posix.js
+++ b/benchmark/path/dirname-posix.js
@@ -12,7 +12,7 @@ const bench = common.createBenchmark(main, {
'foo/bar',
'/foo/bar/baz/asdf/quux',
],
- n: [1e5]
+ n: [1e5],
});
function main({ n, path }) {
diff --git a/benchmark/path/dirname-win32.js b/benchmark/path/dirname-win32.js
index 9eb5478b3b..28e6f3564b 100644
--- a/benchmark/path/dirname-win32.js
+++ b/benchmark/path/dirname-win32.js
@@ -12,7 +12,7 @@ const bench = common.createBenchmark(main, {
'foo\\bar',
'D:\\foo\\bar\\baz\\asdf\\quux',
],
- n: [1e5]
+ n: [1e5],
});
function main({ n, path }) {
diff --git a/benchmark/path/extname-posix.js b/benchmark/path/extname-posix.js
index 0e01d59a74..b2aae0647f 100644
--- a/benchmark/path/extname-posix.js
+++ b/benchmark/path/extname-posix.js
@@ -15,7 +15,7 @@ const bench = common.createBenchmark(main, {
'/foo/bar/baz/asdf/quux',
'/foo/bar/baz/asdf/quux.foobarbazasdfquux',
],
- n: [1e5]
+ n: [1e5],
});
function main({ n, path }) {
diff --git a/benchmark/path/extname-win32.js b/benchmark/path/extname-win32.js
index 6d8437e5c5..1a4e6f73c7 100644
--- a/benchmark/path/extname-win32.js
+++ b/benchmark/path/extname-win32.js
@@ -15,7 +15,7 @@ const bench = common.createBenchmark(main, {
'D:\\foo\\bar\\baz\\asdf\\quux',
'\\foo\\bar\\baz\\asdf\\quux.foobarbazasdfquux',
],
- n: [1e5]
+ n: [1e5],
});
function main({ n, path }) {
diff --git a/benchmark/path/format-posix.js b/benchmark/path/format-posix.js
index 7720bbc3b7..0076f041e9 100644
--- a/benchmark/path/format-posix.js
+++ b/benchmark/path/format-posix.js
@@ -6,7 +6,7 @@ const bench = common.createBenchmark(main, {
props: [
['/', '/home/user/dir', 'index.html', '.html', 'index'].join('|'),
],
- n: [1e6]
+ n: [1e6],
});
function main({ n, props }) {
diff --git a/benchmark/path/format-win32.js b/benchmark/path/format-win32.js
index fab7599ab5..70f7070147 100644
--- a/benchmark/path/format-win32.js
+++ b/benchmark/path/format-win32.js
@@ -6,7 +6,7 @@ const bench = common.createBenchmark(main, {
props: [
['C:\\', 'C:\\path\\dir', 'index.html', '.html', 'index'].join('|'),
],
- n: [1e6]
+ n: [1e6],
});
function main({ n, props }) {
diff --git a/benchmark/path/isAbsolute-posix.js b/benchmark/path/isAbsolute-posix.js
index 90d06502d1..3c70aacc14 100644
--- a/benchmark/path/isAbsolute-posix.js
+++ b/benchmark/path/isAbsolute-posix.js
@@ -10,7 +10,7 @@ const bench = common.createBenchmark(main, {
'/baz/..',
'bar/baz',
],
- n: [1e5]
+ n: [1e5],
});
function main({ n, path }) {
diff --git a/benchmark/path/isAbsolute-win32.js b/benchmark/path/isAbsolute-win32.js
index 15da64f5e9..494f419b7b 100644
--- a/benchmark/path/isAbsolute-win32.js
+++ b/benchmark/path/isAbsolute-win32.js
@@ -11,7 +11,7 @@ const bench = common.createBenchmark(main, {
'C:baz\\..',
'bar\\baz',
],
- n: [1e5]
+ n: [1e5],
});
function main({ n, path }) {
diff --git a/benchmark/path/join-posix.js b/benchmark/path/join-posix.js
index 6619e4dea8..2e7836650a 100644
--- a/benchmark/path/join-posix.js
+++ b/benchmark/path/join-posix.js
@@ -6,7 +6,7 @@ const bench = common.createBenchmark(main, {
paths: [
['/foo', 'bar', '', 'baz/asdf', 'quux', '..'].join('|'),
],
- n: [1e5]
+ n: [1e5],
});
function main({ n, paths }) {
diff --git a/benchmark/path/join-win32.js b/benchmark/path/join-win32.js
index 958dee706d..3ad1c0c7ba 100644
--- a/benchmark/path/join-win32.js
+++ b/benchmark/path/join-win32.js
@@ -6,7 +6,7 @@ const bench = common.createBenchmark(main, {
paths: [
['C:\\foo', 'bar', '', 'baz\\asdf', 'quux', '..'].join('|'),
],
- n: [1e5]
+ n: [1e5],
});
function main({ n, paths }) {
diff --git a/benchmark/path/makeLong-win32.js b/benchmark/path/makeLong-win32.js
index 864a9cfffe..5ac515cb2a 100644
--- a/benchmark/path/makeLong-win32.js
+++ b/benchmark/path/makeLong-win32.js
@@ -9,7 +9,7 @@ const bench = common.createBenchmark(main, {
'\\\\foo\\bar',
'\\\\?\\foo',
],
- n: [1e5]
+ n: [1e5],
});
function main({ n, path }) {
diff --git a/benchmark/path/normalize-posix.js b/benchmark/path/normalize-posix.js
index e072209702..3e90bfc21a 100644
--- a/benchmark/path/normalize-posix.js
+++ b/benchmark/path/normalize-posix.js
@@ -11,7 +11,7 @@ const bench = common.createBenchmark(main, {
'/foo/bar',
'/foo/bar//baz/asdf/quux/..',
],
- n: [1e5]
+ n: [1e5],
});
function main({ n, path }) {
diff --git a/benchmark/path/normalize-win32.js b/benchmark/path/normalize-win32.js
index 84e16ca3c2..33af7953ff 100644
--- a/benchmark/path/normalize-win32.js
+++ b/benchmark/path/normalize-win32.js
@@ -11,7 +11,7 @@ const bench = common.createBenchmark(main, {
'C:\\foo\\bar',
'C:\\foo\\bar\\\\baz\\asdf\\quux\\..',
],
- n: [1e5]
+ n: [1e5],
});
function main({ n, path }) {
diff --git a/benchmark/path/parse-posix.js b/benchmark/path/parse-posix.js
index 7fb1d55099..550f900da3 100644
--- a/benchmark/path/parse-posix.js
+++ b/benchmark/path/parse-posix.js
@@ -12,7 +12,7 @@ const bench = common.createBenchmark(main, {
'foo/bar',
'/foo/bar/baz/asdf/.quux',
],
- n: [1e5]
+ n: [1e5],
});
function main({ n, path }) {
diff --git a/benchmark/path/parse-win32.js b/benchmark/path/parse-win32.js
index ea4bc34a84..7173d1f8c4 100644
--- a/benchmark/path/parse-win32.js
+++ b/benchmark/path/parse-win32.js
@@ -13,7 +13,7 @@ const bench = common.createBenchmark(main, {
'foo\\bar',
'\\foo\\bar\\baz\\asdf\\.quux',
],
- n: [1e5]
+ n: [1e5],
});
function main({ n, path }) {
diff --git a/benchmark/path/relative-posix.js b/benchmark/path/relative-posix.js
index 0285c2c968..cb8978087c 100644
--- a/benchmark/path/relative-posix.js
+++ b/benchmark/path/relative-posix.js
@@ -12,7 +12,7 @@ const bench = common.createBenchmark(main, {
['/foo/bar/baz/quux', '/foo/bar/baz/quux'].join('|'),
['/foo/bar/baz/quux', '/var/log'].join('|'),
],
- n: [1e5]
+ n: [1e5],
});
function main({ n, paths }) {
diff --git a/benchmark/path/relative-win32.js b/benchmark/path/relative-win32.js
index 401919aa20..e513b82853 100644
--- a/benchmark/path/relative-win32.js
+++ b/benchmark/path/relative-win32.js
@@ -10,7 +10,7 @@ const bench = common.createBenchmark(main, {
['C:\\foo\\BAR\\BAZ', 'C:\\foo\\bar\\baz'].join('|'),
['C:\\foo\\bar\\baz\\quux', 'C:\\'].join('|'),
],
- n: [1e5]
+ n: [1e5],
});
function main({ n, paths }) {
diff --git a/benchmark/path/resolve-posix.js b/benchmark/path/resolve-posix.js
index dbae350c62..4881947fe4 100644
--- a/benchmark/path/resolve-posix.js
+++ b/benchmark/path/resolve-posix.js
@@ -9,7 +9,7 @@ const bench = common.createBenchmark(main, {
['foo/bar', '/tmp/file/', '..', 'a/../subfile'].join('|'),
['a/b/c/', '../../..'].join('|'),
],
- n: [1e5]
+ n: [1e5],
});
function main({ n, paths }) {
diff --git a/benchmark/path/resolve-win32.js b/benchmark/path/resolve-win32.js
index 7def7aa102..822b98c2b8 100644
--- a/benchmark/path/resolve-win32.js
+++ b/benchmark/path/resolve-win32.js
@@ -9,7 +9,7 @@ const bench = common.createBenchmark(main, {
['c:/ignore', 'd:\\a/b\\c/d', '\\e.exe'].join('|'),
['c:/blah\\blah', 'd:/games', 'c:../a'].join('|'),
],
- n: [1e5]
+ n: [1e5],
});
function main({ n, paths }) {