Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 7f8b292

Browse filesBrowse files
aduh95MylesBorins
authored andcommitted
benchmark: add trailing commas in benchmark/buffers
PR-URL: #46473 Reviewed-By: Moshe Atlow <moshe@atlow.co.il> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Darshan Sen <raisinten@gmail.com> Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
1 parent 17b3ee3 commit 7f8b292
Copy full SHA for 7f8b292
Expand file treeCollapse file tree

30 files changed

+38
-40
lines changed
Open diff view settings
Collapse file

‎benchmark/.eslintrc.yaml‎

Copy file name to clipboardExpand all lines: benchmark/.eslintrc.yaml
-2Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ rules:
99

1010
overrides:
1111
- files:
12-
- buffers/*.js
13-
- buffers-fill/*.js
1412
- crypto/*.js
1513
- http/*.js
1614
- http2/*.js
Collapse file

‎benchmark/buffers/buffer-base64-decode.js‎

Copy file name to clipboardExpand all lines: benchmark/buffers/buffer-base64-decode.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const common = require('../common.js');
44

55
const bench = common.createBenchmark(main, {
66
n: [32],
7-
size: [8 << 20]
7+
size: [8 << 20],
88
});
99

1010
function main({ n, size }) {
Collapse file

‎benchmark/buffers/buffer-base64-encode.js‎

Copy file name to clipboardExpand all lines: benchmark/buffers/buffer-base64-encode.js
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ const common = require('../common.js');
2424

2525
const bench = common.createBenchmark(main, {
2626
len: [64 * 1024 * 1024],
27-
n: [32]
27+
n: [32],
2828
}, {
29-
test: { len: 256 }
29+
test: { len: 256 },
3030
});
3131

3232
function main({ n, len }) {
Collapse file

‎benchmark/buffers/buffer-bytelength.js‎

Copy file name to clipboardExpand all lines: benchmark/buffers/buffer-bytelength.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const common = require('../common');
44
const bench = common.createBenchmark(main, {
55
encoding: ['utf8', 'base64', 'buffer'],
66
len: [2, 16, 256], // x16
7-
n: [4e6]
7+
n: [4e6],
88
});
99

1010
// 16 chars each
Collapse file

‎benchmark/buffers/buffer-compare-instance-method.js‎

Copy file name to clipboardExpand all lines: benchmark/buffers/buffer-compare-instance-method.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const common = require('../common.js');
44
const bench = common.createBenchmark(main, {
55
size: [16, 512, 4096, 16386],
66
args: [1, 2, 5],
7-
n: [1e6]
7+
n: [1e6],
88
});
99

1010
function main({ n, size, args }) {
Collapse file

‎benchmark/buffers/buffer-compare-offset.js‎

Copy file name to clipboardExpand all lines: benchmark/buffers/buffer-compare-offset.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const common = require('../common.js');
44
const bench = common.createBenchmark(main, {
55
method: ['offset', 'slice'],
66
size: [16, 512, 4096, 16386],
7-
n: [1e6]
7+
n: [1e6],
88
});
99

1010
function compareUsingSlice(b0, b1, len, iter) {
Collapse file

‎benchmark/buffers/buffer-compare.js‎

Copy file name to clipboardExpand all lines: benchmark/buffers/buffer-compare.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const common = require('../common.js');
2424

2525
const bench = common.createBenchmark(main, {
2626
size: [16, 512, 4096, 16386],
27-
n: [1e6]
27+
n: [1e6],
2828
});
2929

3030
function main({ n, size }) {
Collapse file

‎benchmark/buffers/buffer-concat-fill.js‎

Copy file name to clipboardExpand all lines: benchmark/buffers/buffer-concat-fill.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const common = require('../common.js');
33

44
const bench = common.createBenchmark(main, {
55
extraSize: [1, 256, 4 * 256],
6-
n: [8e5]
6+
n: [8e5],
77
});
88

99
function main({ n, extraSize }) {
Collapse file

‎benchmark/buffers/buffer-concat.js‎

Copy file name to clipboardExpand all lines: benchmark/buffers/buffer-concat.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const bench = common.createBenchmark(main, {
55
pieces: [4, 16],
66
pieceSize: [1, 16, 256],
77
withTotalLength: [0, 1],
8-
n: [8e5]
8+
n: [8e5],
99
});
1010

1111
function main({ n, pieces, pieceSize, withTotalLength }) {
Collapse file

‎benchmark/buffers/buffer-copy.js‎

Copy file name to clipboardExpand all lines: benchmark/buffers/buffer-copy.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const common = require('../common.js');
44
const bench = common.createBenchmark(main, {
55
bytes: [0, 8, 128, 32 * 1024],
66
partial: ['true', 'false'],
7-
n: [6e6]
7+
n: [6e6],
88
}, {
99
combinationFilter: (p) => {
1010
return (p.partial === 'false' && p.bytes === 0) ||

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.