diff options
author | Ruben Bridgewater <ruben@bridgewater.de> | 2017-09-14 04:48:53 +0300 |
---|---|---|
committer | Ruben Bridgewater <ruben@bridgewater.de> | 2017-09-20 03:14:38 +0300 |
commit | e167ab71fb113fa38866dd11aa99af7079fb463c (patch) | |
tree | 3d91ca0f6e60d08fcab70833b851335e41b53cd0 /benchmark/tls/tls-connect.js | |
parent | b1c8f15c5f169e021f7c46eb7b219de95fe97603 (diff) |
benchmark: var to const
PR-URL: https://github.com/nodejs/node/pull/13757
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Diffstat (limited to 'benchmark/tls/tls-connect.js')
-rw-r--r-- | benchmark/tls/tls-connect.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/benchmark/tls/tls-connect.js b/benchmark/tls/tls-connect.js index 3acc79e73ac..628b040ee88 100644 --- a/benchmark/tls/tls-connect.js +++ b/benchmark/tls/tls-connect.js @@ -3,8 +3,8 @@ var fs = require('fs'), path = require('path'), tls = require('tls'); -var common = require('../common.js'); -var bench = common.createBenchmark(main, { +const common = require('../common.js'); +const bench = common.createBenchmark(main, { concurrency: [1, 10], dur: [5] }); @@ -20,8 +20,8 @@ function main(conf) { dur = +conf.dur; concurrency = +conf.concurrency; - var cert_dir = path.resolve(__dirname, '../../test/fixtures'); - var options = { + const cert_dir = path.resolve(__dirname, '../../test/fixtures'); + const options = { key: fs.readFileSync(`${cert_dir}/test_key.pem`), cert: fs.readFileSync(`${cert_dir}/test_cert.pem`), ca: [ fs.readFileSync(`${cert_dir}/test_ca.pem`) ], @@ -44,7 +44,7 @@ function onConnection(conn) { } function makeConnection() { - var options = { + const options = { port: common.PORT, rejectUnauthorized: false }; |