Skip to content

Commit

Permalink
benchmark: add trailing commas in benchmark/process
Browse files Browse the repository at this point in the history
PR-URL: #46481
Reviewed-By: Darshan Sen <[email protected]>
Reviewed-By: Yagiz Nizipli <[email protected]>
  • Loading branch information
aduh95 authored and MylesBorins committed Feb 18, 2023
1 parent 6f24f06 commit 9d9b3f8
Show file tree
Hide file tree
Showing 14 changed files with 15 additions and 16 deletions.
1 change: 0 additions & 1 deletion benchmark/.eslintrc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ overrides:
- http/*.js
- http2/*.js
- path/*.js
- process/*.js
- url/*.js
rules:
comma-dangle: [error, {
Expand Down
2 changes: 1 addition & 1 deletion benchmark/process/bench-env.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
});


Expand Down
2 changes: 1 addition & 1 deletion benchmark/process/bench-hrtime.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 }) {
Expand Down
6 changes: 3 additions & 3 deletions benchmark/process/coverage.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand All @@ -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 });
Expand Down
2 changes: 1 addition & 1 deletion benchmark/process/memoryUsage.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

const common = require('../common.js');
const bench = common.createBenchmark(main, {
n: [1e5]
n: [1e5],
});

function main({ n }) {
Expand Down
2 changes: 1 addition & 1 deletion benchmark/process/next-tick-breadth-args.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

const common = require('../common.js');
const bench = common.createBenchmark(main, {
n: [1e7]
n: [1e7],
});

function main({ n }) {
Expand Down
2 changes: 1 addition & 1 deletion benchmark/process/next-tick-breadth.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

const common = require('../common.js');
const bench = common.createBenchmark(main, {
n: [1e7]
n: [1e7],
});

function main({ n }) {
Expand Down
2 changes: 1 addition & 1 deletion benchmark/process/next-tick-depth-args.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

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

function main({ n }) {
Expand Down
2 changes: 1 addition & 1 deletion benchmark/process/next-tick-depth.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict';
const common = require('../common.js');
const bench = common.createBenchmark(main, {
n: [7e6]
n: [7e6],
});

function main({ n }) {
Expand Down
2 changes: 1 addition & 1 deletion benchmark/process/next-tick-exec-args.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict';
const common = require('../common.js');
const bench = common.createBenchmark(main, {
n: [4e6]
n: [4e6],
});

function main({ n }) {
Expand Down
2 changes: 1 addition & 1 deletion benchmark/process/next-tick-exec.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict';
const common = require('../common.js');
const bench = common.createBenchmark(main, {
n: [4e6]
n: [4e6],
});

function main({ n }) {
Expand Down
2 changes: 1 addition & 1 deletion benchmark/process/queue-microtask-breadth.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

const common = require('../common.js');
const bench = common.createBenchmark(main, {
n: [4e5]
n: [4e5],
});

function main({ n }) {
Expand Down
2 changes: 1 addition & 1 deletion benchmark/process/queue-microtask-depth.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict';
const common = require('../common.js');
const bench = common.createBenchmark(main, {
n: [12e5]
n: [12e5],
});

function main({ n }) {
Expand Down
2 changes: 1 addition & 1 deletion benchmark/process/resourceUsage.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

const common = require('../common.js');
const bench = common.createBenchmark(main, {
n: [1e5]
n: [1e5],
});

function main({ n }) {
Expand Down

0 comments on commit 9d9b3f8

Please sign in to comment.