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>
This commit is contained in:
Antoine du Hamel 2023-02-14 18:09:42 +01:00 committed by GitHub
parent f46515c2f3
commit 3acdeb1f7a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
22 changed files with 21 additions and 33 deletions

View File

@ -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,
}]

View File

@ -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 }) {

View File

@ -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 }) {

View File

@ -12,7 +12,7 @@ const bench = common.createBenchmark(main, {
'foo/bar',
'/foo/bar/baz/asdf/quux',
],
n: [1e5]
n: [1e5],
});
function main({ n, path }) {

View File

@ -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 }) {

View File

@ -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 }) {

View File

@ -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 }) {

View File

@ -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 }) {

View File

@ -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 }) {

View File

@ -10,7 +10,7 @@ const bench = common.createBenchmark(main, {
'/baz/..',
'bar/baz',
],
n: [1e5]
n: [1e5],
});
function main({ n, path }) {

View File

@ -11,7 +11,7 @@ const bench = common.createBenchmark(main, {
'C:baz\\..',
'bar\\baz',
],
n: [1e5]
n: [1e5],
});
function main({ n, path }) {

View File

@ -6,7 +6,7 @@ const bench = common.createBenchmark(main, {
paths: [
['/foo', 'bar', '', 'baz/asdf', 'quux', '..'].join('|'),
],
n: [1e5]
n: [1e5],
});
function main({ n, paths }) {

View File

@ -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 }) {

View File

@ -9,7 +9,7 @@ const bench = common.createBenchmark(main, {
'\\\\foo\\bar',
'\\\\?\\foo',
],
n: [1e5]
n: [1e5],
});
function main({ n, path }) {

View File

@ -11,7 +11,7 @@ const bench = common.createBenchmark(main, {
'/foo/bar',
'/foo/bar//baz/asdf/quux/..',
],
n: [1e5]
n: [1e5],
});
function main({ n, path }) {

View File

@ -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 }) {

View File

@ -12,7 +12,7 @@ const bench = common.createBenchmark(main, {
'foo/bar',
'/foo/bar/baz/asdf/.quux',
],
n: [1e5]
n: [1e5],
});
function main({ n, path }) {

View File

@ -13,7 +13,7 @@ const bench = common.createBenchmark(main, {
'foo\\bar',
'\\foo\\bar\\baz\\asdf\\.quux',
],
n: [1e5]
n: [1e5],
});
function main({ n, path }) {

View File

@ -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 }) {

View File

@ -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 }) {

View File

@ -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 }) {

View File

@ -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 }) {