We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4a5d7d4 commit 7da01f4Copy full SHA for 7da01f4
benchmark/tls/tls-connect.js
@@ -11,12 +11,13 @@ const bench = common.createBenchmark(main, {
11
12
var clientConn = 0;
13
var serverConn = 0;
14
-var server;
15
var dur;
16
var concurrency;
17
var running = true;
18
19
-function main({ dur, concurrency }) {
+function main(conf) {
+ dur = conf.dur;
20
+ concurrency = conf.concurrency;
21
const cert_dir = path.resolve(__dirname, '../../test/fixtures');
22
const options = {
23
key: fs.readFileSync(`${cert_dir}/test_key.pem`),
@@ -25,7 +26,7 @@ function main({ dur, concurrency }) {
25
26
ciphers: 'AES256-GCM-SHA384'
27
};
28
- server = tls.createServer(options, onConnection);
29
+ const server = tls.createServer(options, onConnection);
30
server.listen(common.PORT, onListening);
31
}
32
0 commit comments