benchmark: add trailing commas in benchmark/process

PR-URL: https://github.com/nodejs/node/pull/46481
Reviewed-By: Darshan Sen <raisinten@gmail.com>
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
This commit is contained in:
Antoine du Hamel 2023-02-05 12:00:09 +01:00 committed by GitHub
parent 06b28fbadc
commit f466fe5ecc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
14 changed files with 15 additions and 16 deletions

View File

@ -13,7 +13,6 @@ overrides:
- http/*.js
- http2/*.js
- path/*.js
- process/*.js
- url/*.js
rules:
comma-dangle: [error, {

View File

@ -4,7 +4,7 @@ const common = require('../common');
const bench = common.createBenchmark(main, {
n: [1e6],
operation: ['get', 'set', 'enumerate', 'query', 'delete']
operation: ['get', 'set', 'enumerate', 'query', 'delete'],
});

View File

@ -5,7 +5,7 @@ const assert = require('assert');
const bench = common.createBenchmark(main, {
n: [1e6],
type: ['raw', 'diff', 'bigint']
type: ['raw', 'diff', 'bigint'],
});
function main({ n, type }) {

View File

@ -4,7 +4,7 @@
const common = require('../common.js');
const bench = common.createBenchmark(main, {
n: [1e5]
n: [1e5],
});
const path = require('path');
const { rmSync } = require('fs');
@ -21,8 +21,8 @@ function main({ n }) {
env: {
NODE_V8_COVERAGE: coverageDir,
N: n,
...process.env
}
...process.env,
},
});
bench.end(n);
rmSync(coverageDir, { recursive: true, force: true });

View File

@ -2,7 +2,7 @@
const common = require('../common.js');
const bench = common.createBenchmark(main, {
n: [1e5]
n: [1e5],
});
function main({ n }) {

View File

@ -2,7 +2,7 @@
const common = require('../common.js');
const bench = common.createBenchmark(main, {
n: [1e7]
n: [1e7],
});
function main({ n }) {

View File

@ -2,7 +2,7 @@
const common = require('../common.js');
const bench = common.createBenchmark(main, {
n: [1e7]
n: [1e7],
});
function main({ n }) {

View File

@ -2,7 +2,7 @@
const common = require('../common.js');
const bench = common.createBenchmark(main, {
n: [7e6]
n: [7e6],
});
function main({ n }) {

View File

@ -1,7 +1,7 @@
'use strict';
const common = require('../common.js');
const bench = common.createBenchmark(main, {
n: [7e6]
n: [7e6],
});
function main({ n }) {

View File

@ -1,7 +1,7 @@
'use strict';
const common = require('../common.js');
const bench = common.createBenchmark(main, {
n: [4e6]
n: [4e6],
});
function main({ n }) {

View File

@ -1,7 +1,7 @@
'use strict';
const common = require('../common.js');
const bench = common.createBenchmark(main, {
n: [4e6]
n: [4e6],
});
function main({ n }) {

View File

@ -2,7 +2,7 @@
const common = require('../common.js');
const bench = common.createBenchmark(main, {
n: [4e5]
n: [4e5],
});
function main({ n }) {

View File

@ -1,7 +1,7 @@
'use strict';
const common = require('../common.js');
const bench = common.createBenchmark(main, {
n: [12e5]
n: [12e5],
});
function main({ n }) {

View File

@ -2,7 +2,7 @@
const common = require('../common.js');
const bench = common.createBenchmark(main, {
n: [1e5]
n: [1e5],
});
function main({ n }) {