mirror of
https://github.com/nodejs/node.git
synced 2025-04-29 14:25:18 +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
|
- http/*.js
|
||||||
- http2/*.js
|
- http2/*.js
|
||||||
- path/*.js
|
- path/*.js
|
||||||
- process/*.js
|
|
||||||
- url/*.js
|
- url/*.js
|
||||||
rules:
|
rules:
|
||||||
comma-dangle: [error, {
|
comma-dangle: [error, {
|
||||||
|
@ -4,7 +4,7 @@ const common = require('../common');
|
|||||||
|
|
||||||
const bench = common.createBenchmark(main, {
|
const bench = common.createBenchmark(main, {
|
||||||
n: [1e6],
|
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, {
|
const bench = common.createBenchmark(main, {
|
||||||
n: [1e6],
|
n: [1e6],
|
||||||
type: ['raw', 'diff', 'bigint']
|
type: ['raw', 'diff', 'bigint'],
|
||||||
});
|
});
|
||||||
|
|
||||||
function main({ n, type }) {
|
function main({ n, type }) {
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
const common = require('../common.js');
|
const common = require('../common.js');
|
||||||
const bench = common.createBenchmark(main, {
|
const bench = common.createBenchmark(main, {
|
||||||
n: [1e5]
|
n: [1e5],
|
||||||
});
|
});
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
const { rmSync } = require('fs');
|
const { rmSync } = require('fs');
|
||||||
@ -21,8 +21,8 @@ function main({ n }) {
|
|||||||
env: {
|
env: {
|
||||||
NODE_V8_COVERAGE: coverageDir,
|
NODE_V8_COVERAGE: coverageDir,
|
||||||
N: n,
|
N: n,
|
||||||
...process.env
|
...process.env,
|
||||||
}
|
},
|
||||||
});
|
});
|
||||||
bench.end(n);
|
bench.end(n);
|
||||||
rmSync(coverageDir, { recursive: true, force: true });
|
rmSync(coverageDir, { recursive: true, force: true });
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
const common = require('../common.js');
|
const common = require('../common.js');
|
||||||
const bench = common.createBenchmark(main, {
|
const bench = common.createBenchmark(main, {
|
||||||
n: [1e5]
|
n: [1e5],
|
||||||
});
|
});
|
||||||
|
|
||||||
function main({ n }) {
|
function main({ n }) {
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
const common = require('../common.js');
|
const common = require('../common.js');
|
||||||
const bench = common.createBenchmark(main, {
|
const bench = common.createBenchmark(main, {
|
||||||
n: [1e7]
|
n: [1e7],
|
||||||
});
|
});
|
||||||
|
|
||||||
function main({ n }) {
|
function main({ n }) {
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
const common = require('../common.js');
|
const common = require('../common.js');
|
||||||
const bench = common.createBenchmark(main, {
|
const bench = common.createBenchmark(main, {
|
||||||
n: [1e7]
|
n: [1e7],
|
||||||
});
|
});
|
||||||
|
|
||||||
function main({ n }) {
|
function main({ n }) {
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
const common = require('../common.js');
|
const common = require('../common.js');
|
||||||
const bench = common.createBenchmark(main, {
|
const bench = common.createBenchmark(main, {
|
||||||
n: [7e6]
|
n: [7e6],
|
||||||
});
|
});
|
||||||
|
|
||||||
function main({ n }) {
|
function main({ n }) {
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
const common = require('../common.js');
|
const common = require('../common.js');
|
||||||
const bench = common.createBenchmark(main, {
|
const bench = common.createBenchmark(main, {
|
||||||
n: [7e6]
|
n: [7e6],
|
||||||
});
|
});
|
||||||
|
|
||||||
function main({ n }) {
|
function main({ n }) {
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
const common = require('../common.js');
|
const common = require('../common.js');
|
||||||
const bench = common.createBenchmark(main, {
|
const bench = common.createBenchmark(main, {
|
||||||
n: [4e6]
|
n: [4e6],
|
||||||
});
|
});
|
||||||
|
|
||||||
function main({ n }) {
|
function main({ n }) {
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
const common = require('../common.js');
|
const common = require('../common.js');
|
||||||
const bench = common.createBenchmark(main, {
|
const bench = common.createBenchmark(main, {
|
||||||
n: [4e6]
|
n: [4e6],
|
||||||
});
|
});
|
||||||
|
|
||||||
function main({ n }) {
|
function main({ n }) {
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
const common = require('../common.js');
|
const common = require('../common.js');
|
||||||
const bench = common.createBenchmark(main, {
|
const bench = common.createBenchmark(main, {
|
||||||
n: [4e5]
|
n: [4e5],
|
||||||
});
|
});
|
||||||
|
|
||||||
function main({ n }) {
|
function main({ n }) {
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
const common = require('../common.js');
|
const common = require('../common.js');
|
||||||
const bench = common.createBenchmark(main, {
|
const bench = common.createBenchmark(main, {
|
||||||
n: [12e5]
|
n: [12e5],
|
||||||
});
|
});
|
||||||
|
|
||||||
function main({ n }) {
|
function main({ n }) {
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
const common = require('../common.js');
|
const common = require('../common.js');
|
||||||
const bench = common.createBenchmark(main, {
|
const bench = common.createBenchmark(main, {
|
||||||
n: [1e5]
|
n: [1e5],
|
||||||
});
|
});
|
||||||
|
|
||||||
function main({ n }) {
|
function main({ n }) {
|
||||||
|
Loading…
Reference in New Issue
Block a user