FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
node/benchmark/https/simple.js at main · nodejs/node · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
nodejs
/
node
Public
Uh oh!
There was an error while loading.
Please reload this page
.
Notifications
You must be signed in to change notification settings
Fork
36.6k
Star
120k
Code
Issues
632
Pull requests
755
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
node
/
benchmark
/
https
/
simple.js
Copy path
More file actions
More file actions
Latest commit
History
History
History
29 lines (26 loc) · 650 Bytes
Breadcrumbs
node
/
benchmark
/
https
/
simple.js
Copy path
File metadata and controls
29 lines (26 loc) · 650 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
'use strict'
;
const
common
=
require
(
'../common.js'
)
;
const
bench
=
common
.
createBenchmark
(
main
,
{
type
:
[
'bytes'
,
'buffer'
]
,
len
:
[
4
,
1024
,
102400
]
,
chunks
:
[
1
,
4
]
,
c
:
[
50
,
500
]
,
chunkedEnc
:
[
1
,
0
]
,
benchmarker
:
[
'test-double-https'
]
,
duration
:
5
,
}
)
;
function
main
(
{
type
,
len
,
chunks
,
c
,
chunkedEnc
,
duration
}
)
{
const
server
=
require
(
'../fixtures/simple-https-server.js'
)
.
listen
(
common
.
PORT
)
.
on
(
'listening'
,
(
)
=>
{
const
path
=
`/
${
type
}
/
${
len
}
/
${
chunks
}
/
${
chunkedEnc
}
`
;
bench
.
http
(
{
path
,
connections
:
c
,
scheme
:
'https'
,
duration
,
}
,
(
)
=>
{
server
.
close
(
)
;
}
)
;
}
)
;
}
Back
|
FazBrowse Home
|
New Git URL