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 7524871

Browse filesBrowse files
aduh95MylesBorins
authored andcommitted
benchmark: add trailing commas in benchmark/http2
PR-URL: #46552 Reviewed-By: Moshe Atlow <moshe@atlow.co.il> Reviewed-By: Akhil Marsonya <akhil.marsonya27@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Darshan Sen <raisinten@gmail.com>
1 parent 31fb2e2 commit 7524871
Copy full SHA for 7524871

File tree

Expand file treeCollapse file tree

6 files changed

+11
-12
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

6 files changed

+11
-12
lines changed
Open diff view settings
Collapse file

‎benchmark/.eslintrc.yaml‎

Copy file name to clipboardExpand all lines: benchmark/.eslintrc.yaml
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ overrides:
1111
- files:
1212
- crypto/*.js
1313
- http/*.js
14-
- http2/*.js
1514
- path/*.js
1615
- url/*.js
1716
rules:
Collapse file

‎benchmark/http2/compat.js‎

Copy file name to clipboardExpand all lines: benchmark/http2/compat.js
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const bench = common.createBenchmark(main, {
1010
streams: [1, 10, 20, 40, 100, 200],
1111
clients: [2],
1212
benchmarker: ['test-double-http2'],
13-
duration: 5
13+
duration: 5,
1414
}, { flags: ['--no-warnings'] });
1515

1616
function main({ requests, streams, clients, duration }) {
@@ -32,7 +32,7 @@ function main({ requests, streams, clients, duration }) {
3232
maxConcurrentStreams: streams,
3333
clients,
3434
threads: clients,
35-
duration
35+
duration,
3636
}, () => { server.close(); });
3737
});
3838
}
Collapse file

‎benchmark/http2/headers.js‎

Copy file name to clipboardExpand all lines: benchmark/http2/headers.js
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ const common = require('../common.js');
44

55
const bench = common.createBenchmark(main, {
66
n: [1e3],
7-
nheaders: [0, 10, 100, 1000]
7+
nheaders: [0, 10, 100, 1000],
88
}, { flags: ['--no-warnings'] });
99

1010
function main({ n, nheaders }) {
1111
const http2 = require('http2');
1212
const server = http2.createServer({
13-
maxHeaderListPairs: 20000
13+
maxHeaderListPairs: 20000,
1414
});
1515

1616
const headersObject = {
@@ -20,7 +20,7 @@ function main({ n, nheaders }) {
2020
'accept-language': 'en',
2121
'content-type': 'text/plain',
2222
'referer': 'https://example.org/',
23-
'user-agent': 'SuperBenchmarker 3000'
23+
'user-agent': 'SuperBenchmarker 3000',
2424
};
2525

2626
for (let i = 0; i < nheaders; i++) {
@@ -33,7 +33,7 @@ function main({ n, nheaders }) {
3333
});
3434
server.listen(0, () => {
3535
const client = http2.connect(`http://localhost:${server.address().port}/`, {
36-
maxHeaderListPairs: 20000
36+
maxHeaderListPairs: 20000,
3737
});
3838

3939
function doRequest(remaining) {
Collapse file

‎benchmark/http2/respond-with-fd.js‎

Copy file name to clipboardExpand all lines: benchmark/http2/respond-with-fd.js
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const bench = common.createBenchmark(main, {
1111
streams: [1, 10, 20, 40, 100, 200],
1212
clients: [2],
1313
benchmarker: ['test-double-http2'],
14-
duration: 5
14+
duration: 5,
1515
}, { flags: ['--no-warnings'] });
1616

1717
function main({ requests, streams, clients, duration }) {
@@ -33,7 +33,7 @@ function main({ requests, streams, clients, duration }) {
3333
maxConcurrentStreams: streams,
3434
clients,
3535
duration,
36-
threads: clients
36+
threads: clients,
3737
}, () => server.close());
3838
});
3939

Collapse file

‎benchmark/http2/simple.js‎

Copy file name to clipboardExpand all lines: benchmark/http2/simple.js
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const bench = common.createBenchmark(main, {
1010
streams: [1, 10, 20, 40, 100, 200],
1111
clients: [2],
1212
benchmarker: ['test-double-http2'],
13-
duration: 5
13+
duration: 5,
1414
}, { flags: ['--no-warnings'] });
1515

1616
function main({ requests, streams, clients, duration }) {
@@ -30,7 +30,7 @@ function main({ requests, streams, clients, duration }) {
3030
maxConcurrentStreams: streams,
3131
clients,
3232
duration,
33-
threads: clients
33+
threads: clients,
3434
}, () => { server.close(); });
3535
});
3636
}
Collapse file

‎benchmark/http2/write.js‎

Copy file name to clipboardExpand all lines: benchmark/http2/write.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const bench = common.createBenchmark(main, {
77
length: [64 * 1024, 128 * 1024, 256 * 1024, 1024 * 1024],
88
size: [100000],
99
benchmarker: ['test-double-http2'],
10-
duration: 5
10+
duration: 5,
1111
}, { flags: ['--no-warnings'] });
1212

1313
function main({ streams, length, size, duration }) {

0 commit comments

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