benchmark: fixate ciphers
in tls benchmarks
Benchmark should always use the same cipher in order to be truthful.
This commit is contained in:
parent
1903240f2a
commit
f5ab3e4c5c
@ -39,7 +39,8 @@ function main(conf) {
|
|||||||
|
|
||||||
options = { key: fs.readFileSync(cert_dir + '/test_key.pem'),
|
options = { key: fs.readFileSync(cert_dir + '/test_key.pem'),
|
||||||
cert: fs.readFileSync(cert_dir + '/test_cert.pem'),
|
cert: fs.readFileSync(cert_dir + '/test_cert.pem'),
|
||||||
ca: [ fs.readFileSync(cert_dir + '/test_ca.pem') ] };
|
ca: [ fs.readFileSync(cert_dir + '/test_ca.pem') ],
|
||||||
|
ciphers: 'AES256-GCM-SHA384' };
|
||||||
|
|
||||||
server = tls.createServer(options, onConnection);
|
server = tls.createServer(options, onConnection);
|
||||||
setTimeout(done, dur * 1000);
|
setTimeout(done, dur * 1000);
|
||||||
|
@ -23,7 +23,8 @@ function main(conf) {
|
|||||||
var cert_dir = path.resolve(__dirname, '../../test/fixtures'),
|
var cert_dir = path.resolve(__dirname, '../../test/fixtures'),
|
||||||
options = { key: fs.readFileSync(cert_dir + '/test_key.pem'),
|
options = { key: fs.readFileSync(cert_dir + '/test_key.pem'),
|
||||||
cert: fs.readFileSync(cert_dir + '/test_cert.pem'),
|
cert: fs.readFileSync(cert_dir + '/test_cert.pem'),
|
||||||
ca: [ fs.readFileSync(cert_dir + '/test_ca.pem') ] };
|
ca: [ fs.readFileSync(cert_dir + '/test_ca.pem') ],
|
||||||
|
ciphers: 'AES256-GCM-SHA384' };
|
||||||
|
|
||||||
server = tls.createServer(options, onConnection);
|
server = tls.createServer(options, onConnection);
|
||||||
server.listen(common.PORT, onListening);
|
server.listen(common.PORT, onListening);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user