mirror of
https://github.com/nodejs/node.git
synced 2025-04-28 13:40:37 +00:00
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:
parent
06b28fbadc
commit
f466fe5ecc
@ -13,7 +13,6 @@ overrides:
|
||||
- http/*.js
|
||||
- http2/*.js
|
||||
- path/*.js
|
||||
- process/*.js
|
||||
- url/*.js
|
||||
rules:
|
||||
comma-dangle: [error, {
|
||||
|
@ -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'],
|
||||
});
|
||||
|
||||
|
||||
|
@ -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 }) {
|
||||
|
@ -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 });
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
const common = require('../common.js');
|
||||
const bench = common.createBenchmark(main, {
|
||||
n: [1e5]
|
||||
n: [1e5],
|
||||
});
|
||||
|
||||
function main({ n }) {
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
const common = require('../common.js');
|
||||
const bench = common.createBenchmark(main, {
|
||||
n: [1e7]
|
||||
n: [1e7],
|
||||
});
|
||||
|
||||
function main({ n }) {
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
const common = require('../common.js');
|
||||
const bench = common.createBenchmark(main, {
|
||||
n: [1e7]
|
||||
n: [1e7],
|
||||
});
|
||||
|
||||
function main({ n }) {
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
const common = require('../common.js');
|
||||
const bench = common.createBenchmark(main, {
|
||||
n: [7e6]
|
||||
n: [7e6],
|
||||
});
|
||||
|
||||
function main({ n }) {
|
||||
|
@ -1,7 +1,7 @@
|
||||
'use strict';
|
||||
const common = require('../common.js');
|
||||
const bench = common.createBenchmark(main, {
|
||||
n: [7e6]
|
||||
n: [7e6],
|
||||
});
|
||||
|
||||
function main({ n }) {
|
||||
|
@ -1,7 +1,7 @@
|
||||
'use strict';
|
||||
const common = require('../common.js');
|
||||
const bench = common.createBenchmark(main, {
|
||||
n: [4e6]
|
||||
n: [4e6],
|
||||
});
|
||||
|
||||
function main({ n }) {
|
||||
|
@ -1,7 +1,7 @@
|
||||
'use strict';
|
||||
const common = require('../common.js');
|
||||
const bench = common.createBenchmark(main, {
|
||||
n: [4e6]
|
||||
n: [4e6],
|
||||
});
|
||||
|
||||
function main({ n }) {
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
const common = require('../common.js');
|
||||
const bench = common.createBenchmark(main, {
|
||||
n: [4e5]
|
||||
n: [4e5],
|
||||
});
|
||||
|
||||
function main({ n }) {
|
||||
|
@ -1,7 +1,7 @@
|
||||
'use strict';
|
||||
const common = require('../common.js');
|
||||
const bench = common.createBenchmark(main, {
|
||||
n: [12e5]
|
||||
n: [12e5],
|
||||
});
|
||||
|
||||
function main({ n }) {
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
const common = require('../common.js');
|
||||
const bench = common.createBenchmark(main, {
|
||||
n: [1e5]
|
||||
n: [1e5],
|
||||
});
|
||||
|
||||
function main({ n }) {
|
||||
|
Loading…
Reference in New Issue
Block a user