diff options
author | Rich Trott <rtrott@gmail.com> | 2016-11-24 11:43:35 -0800 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2016-11-27 21:51:09 -0800 |
commit | 566a1513d1a21674a35153f28db051c372047f24 (patch) | |
tree | dab80b0647fe5dbc676defac3b4ca82fd366caee /benchmark/tls/throughput.js | |
parent | 31d1a3f8a89e709ccd7aa07d900464c234d9727f (diff) | |
download | android-node-v8-566a1513d1a21674a35153f28db051c372047f24.tar.gz android-node-v8-566a1513d1a21674a35153f28db051c372047f24.tar.bz2 android-node-v8-566a1513d1a21674a35153f28db051c372047f24.zip |
benchmark: reformat code for clarity
Some of the benchmark code can be a little dense. Not *very* hard to
read but perhaps harder than it needs to be.
These changes (many of them whitespace-only) hopefully improve
readability.
There are also a few cases of `assert.equal()` that are changed to
`assert.strictEqual()`.
PR-URL: https://github.com/nodejs/node/pull/9790
Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Diffstat (limited to 'benchmark/tls/throughput.js')
-rw-r--r-- | benchmark/tls/throughput.js | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/benchmark/tls/throughput.js b/benchmark/tls/throughput.js index d0de99e7b5..d3b7d0c022 100644 --- a/benchmark/tls/throughput.js +++ b/benchmark/tls/throughput.js @@ -37,10 +37,12 @@ function main(conf) { throw new Error('invalid type'); } - 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') ], - ciphers: 'AES256-GCM-SHA384' }; + 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') ], + ciphers: 'AES256-GCM-SHA384' + }; server = tls.createServer(options, onConnection); setTimeout(done, dur * 1000); |