summaryrefslogtreecommitdiff
path: root/benchmark/tls
diff options
context:
space:
mode:
authorVse Mozhet Byt <vsemozhetbyt@gmail.com>2017-04-17 04:01:12 +0300
committerVse Mozhet Byt <vsemozhetbyt@gmail.com>2017-04-20 04:46:37 +0300
commit22aa3d48997f1fc31e9c9cc08ec76a5436c93fe3 (patch)
tree255361bcfb0611af60f6c7c101c886687d0ce047 /benchmark/tls
parentbbbb1f60780d9b8ef812769e215be830c4d968b8 (diff)
downloadandroid-node-v8-22aa3d48997f1fc31e9c9cc08ec76a5436c93fe3.tar.gz
android-node-v8-22aa3d48997f1fc31e9c9cc08ec76a5436c93fe3.tar.bz2
android-node-v8-22aa3d48997f1fc31e9c9cc08ec76a5436c93fe3.zip
benchmark: reduce string concatenations
PR-URL: https://github.com/nodejs/node/pull/12455 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'benchmark/tls')
-rw-r--r--benchmark/tls/throughput.js6
-rw-r--r--benchmark/tls/tls-connect.js6
2 files changed, 6 insertions, 6 deletions
diff --git a/benchmark/tls/throughput.js b/benchmark/tls/throughput.js
index c2b389fe45..2b8b2d5376 100644
--- a/benchmark/tls/throughput.js
+++ b/benchmark/tls/throughput.js
@@ -38,9 +38,9 @@ function main(conf) {
}
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') ],
+ 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'
};
diff --git a/benchmark/tls/tls-connect.js b/benchmark/tls/tls-connect.js
index 5ca67f3230..3acc79e73a 100644
--- a/benchmark/tls/tls-connect.js
+++ b/benchmark/tls/tls-connect.js
@@ -22,9 +22,9 @@ function main(conf) {
var cert_dir = path.resolve(__dirname, '../../test/fixtures');
var 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') ],
+ 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'
};