aboutsummaryrefslogtreecommitdiff
path: root/benchmark/crypto/get-ciphers.js
diff options
context:
space:
mode:
Diffstat (limited to 'benchmark/crypto/get-ciphers.js')
-rw-r--r--benchmark/crypto/get-ciphers.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/benchmark/crypto/get-ciphers.js b/benchmark/crypto/get-ciphers.js
index 3f5ad17ad3..d4c10a2427 100644
--- a/benchmark/crypto/get-ciphers.js
+++ b/benchmark/crypto/get-ciphers.js
@@ -7,12 +7,10 @@ const bench = common.createBenchmark(main, {
v: ['crypto', 'tls']
});
-function main(conf) {
- const n = +conf.n;
- const v = conf.v;
+function main({ n, v }) {
const method = require(v).getCiphers;
var i = 0;
- // first call to getChipers will dominate the results
+ // First call to getChipers will dominate the results
if (n > 1) {
for (; i < n; i++)
method();