aboutsummaryrefslogtreecommitdiff
path: root/benchmark/crypto/rsa-sign-verify-throughput.js
diff options
context:
space:
mode:
Diffstat (limited to 'benchmark/crypto/rsa-sign-verify-throughput.js')
-rw-r--r--benchmark/crypto/rsa-sign-verify-throughput.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/benchmark/crypto/rsa-sign-verify-throughput.js b/benchmark/crypto/rsa-sign-verify-throughput.js
index bcde3a43d4..3a0373b57d 100644
--- a/benchmark/crypto/rsa-sign-verify-throughput.js
+++ b/benchmark/crypto/rsa-sign-verify-throughput.js
@@ -23,10 +23,10 @@ const bench = common.createBenchmark(main, {
len: [1024, 102400, 2 * 102400, 3 * 102400, 1024 * 1024]
});
-function main(conf) {
- const message = Buffer.alloc(conf.len, 'b');
+function main({ len, algo, keylen, writes }) {
+ const message = Buffer.alloc(len, 'b');
bench.start();
- StreamWrite(conf.algo, conf.keylen, message, conf.writes, conf.len);
+ StreamWrite(algo, keylen, message, writes, len);
}
function StreamWrite(algo, keylen, message, writes, len) {