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 authored and GitHub committed 2023-02-05 11:00:09 +00:00
1 parent 06b28fbadc
commit f466fe5ecc
14 files changed
+15 -16

No files matched your search

-1
View File
@@ -13,7 +13,6 @@ overrides:
- http/*.js
- http2/*.js
- path/*.js
- process/*.js
- url/*.js
rules:
comma-dangle: [error, {
+1 -1
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'],
});
+1 -1
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 }) {
+3 -3
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 });
+1 -1
View File
@@ -2,7 +2,7 @@
const common = require('../common.js');
const bench = common.createBenchmark(main, {
n: [1e5]
n: [1e5],
});
function main({ n }) {
+1 -1
View File
@@ -2,7 +2,7 @@
const common = require('../common.js');
const bench = common.createBenchmark(main, {
n: [1e7]
n: [1e7],
});
function main({ n }) {
+1 -1
View File
@@ -2,7 +2,7 @@
const common = require('../common.js');
const bench = common.createBenchmark(main, {
n: [1e7]
n: [1e7],
});
function main({ n }) {
+1 -1
View File
@@ -2,7 +2,7 @@
const common = require('../common.js');
const bench = common.createBenchmark(main, {
n: [7e6]
n: [7e6],
});
function main({ n }) {
+1 -1
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 }) {
+1 -1
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 }) {
+1 -1
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 }) {
+1 -1
View File
@@ -2,7 +2,7 @@
const common = require('../common.js');
const bench = common.createBenchmark(main, {
n: [4e5]
n: [4e5],
});
function main({ n }) {
+1 -1
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 }) {
+1 -1
View File
@@ -2,7 +2,7 @@
const common = require('../common.js');
const bench = common.createBenchmark(main, {
n: [1e5]
n: [1e5],
});
function main({ n }) {