summaryrefslogtreecommitdiff
path: root/benchmark/tls/throughput.js
diff options
context:
space:
mode:
Diffstat (limited to 'benchmark/tls/throughput.js')
-rw-r--r--benchmark/tls/throughput.js10
1 files changed, 6 insertions, 4 deletions
diff --git a/benchmark/tls/throughput.js b/benchmark/tls/throughput.js
index a8f2d19649..cd957ff1ed 100644
--- a/benchmark/tls/throughput.js
+++ b/benchmark/tls/throughput.js
@@ -6,7 +6,9 @@ const bench = common.createBenchmark(main, {
size: [2, 1024, 1024 * 1024]
});
-const fixtures = require('../../test/common/fixtures');
+const path = require('path');
+const fs = require('fs');
+const cert_dir = path.resolve(__dirname, '../../test/fixtures');
var options;
const tls = require('tls');
@@ -30,9 +32,9 @@ function main({ dur, type, size }) {
}
options = {
- key: fixtures.readKey('rsa_private.pem'),
- cert: fixtures.readKey('rsa_cert.crt'),
- ca: fixtures.readKey('rsa_ca.crt'),
+ 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'
};