Commit 7aedda9
benchmark: add simple https benchmark
Adds a simple benchmark for https server based on the http simple
benchmark. Updates benchmarker integration for autocannon and wrk,
so that they support https scheme.
Also adds a new HTTPS section and improves HTTP/2 section in
the benchmark guide.
PR-URL: #36612
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>1 parent 822ac48 commit 7aedda9Copy full SHA for 7aedda9
File tree
Expand file treeCollapse file tree
5 files changed
+132
-9
lines changedOpen diff view settings
Filter options
- benchmark
- fixtures
- https
- doc/guides
Expand file treeCollapse file tree
5 files changed
+132
-9
lines changedOpen diff view settings
Collapse file
benchmark/_http-benchmarkers.js
Copy file name to clipboardExpand all lines: benchmark/_http-benchmarkers.js+9-5Lines changed: 9 additions & 5 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
29 | 29 | |
30 | 30 | |
31 | 31 | |
32 | | - |
| 32 | + |
| 33 | + |
33 | 34 | |
34 | 35 | |
35 | 36 | |
| ||
60 | 61 | |
61 | 62 | |
62 | 63 | |
| 64 | + |
63 | 65 | |
64 | 66 | |
65 | 67 | |
66 | 68 | |
67 | | - |
| 69 | + |
68 | 70 | |
69 | 71 | |
70 | 72 | |
| ||
90 | 92 | |
91 | 93 | |
92 | 94 | |
93 | | - |
94 | | - |
| 95 | + |
| 96 | + |
95 | 97 | |
96 | 98 | |
97 | 99 | |
| ||
101 | 103 | |
102 | 104 | |
103 | 105 | |
| 106 | + |
104 | 107 | |
105 | | - |
| 108 | + |
106 | 109 | |
107 | 110 | |
108 | 111 | |
| ||
179 | 182 | |
180 | 183 | |
181 | 184 | |
| 185 | + |
182 | 186 | |
183 | 187 | |
184 | 188 | |
|
Collapse file
benchmark/_test-double-benchmarker.js
Copy file name to clipboardExpand all lines: benchmark/_test-double-benchmarker.js+12-3Lines changed: 12 additions & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | 1 | |
2 | 2 | |
3 | 3 | |
4 | | - |
| 4 | + |
5 | 5 | |
6 | 6 | |
7 | 7 | |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | + |
8 | 13 | |
9 | 14 | |
10 | 15 | |
| ||
33 | 38 | |
34 | 39 | |
35 | 40 | |
36 | | - |
37 | | - |
| 41 | + |
| 42 | + |
| 43 | + |
| 44 | + |
| 45 | + |
| 46 | + |
38 | 47 | |
39 | 48 | |
40 | 49 | |
|
Collapse file
benchmark/fixtures/simple-https-server.js
Copy file name to clipboard+72Lines changed: 72 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | + |
| 14 | + |
| 15 | + |
| 16 | + |
| 17 | + |
| 18 | + |
| 19 | + |
| 20 | + |
| 21 | + |
| 22 | + |
| 23 | + |
| 24 | + |
| 25 | + |
| 26 | + |
| 27 | + |
| 28 | + |
| 29 | + |
| 30 | + |
| 31 | + |
| 32 | + |
| 33 | + |
| 34 | + |
| 35 | + |
| 36 | + |
| 37 | + |
| 38 | + |
| 39 | + |
| 40 | + |
| 41 | + |
| 42 | + |
| 43 | + |
| 44 | + |
| 45 | + |
| 46 | + |
| 47 | + |
| 48 | + |
| 49 | + |
| 50 | + |
| 51 | + |
| 52 | + |
| 53 | + |
| 54 | + |
| 55 | + |
| 56 | + |
| 57 | + |
| 58 | + |
| 59 | + |
| 60 | + |
| 61 | + |
| 62 | + |
| 63 | + |
| 64 | + |
| 65 | + |
| 66 | + |
| 67 | + |
| 68 | + |
| 69 | + |
| 70 | + |
| 71 | + |
| 72 | + |
Collapse file
benchmark/https/simple.js
Copy file name to clipboard+29Lines changed: 29 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | + |
| 14 | + |
| 15 | + |
| 16 | + |
| 17 | + |
| 18 | + |
| 19 | + |
| 20 | + |
| 21 | + |
| 22 | + |
| 23 | + |
| 24 | + |
| 25 | + |
| 26 | + |
| 27 | + |
| 28 | + |
| 29 | + |
Collapse file
doc/guides/writing-and-running-benchmarks.md
Copy file name to clipboardExpand all lines: doc/guides/writing-and-running-benchmarks.md+10-1Lines changed: 10 additions & 1 deletion
- Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
4 | 4 | |
5 | 5 | |
6 | 6 | |
| 7 | + |
| 8 | + |
7 | 9 | |
8 | 10 | |
9 | 11 | |
| ||
43 | 45 | |
44 | 46 | |
45 | 47 | |
| 48 | + |
| 49 | + |
| 50 | + |
| 51 | + |
| 52 | + |
| 53 | + |
| 54 | + |
46 | 55 | |
47 | 56 | |
48 | 57 | |
49 | 58 | |
50 | 59 | |
51 | 60 | |
52 | | - |
| 61 | + |
53 | 62 | |
54 | 63 | |
55 | 64 | |
|
0 commit comments