summaryrefslogtreecommitdiff
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.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/benchmark/crypto/rsa-sign-verify-throughput.js b/benchmark/crypto/rsa-sign-verify-throughput.js
index 779cc8bca1..c5db94687a 100644
--- a/benchmark/crypto/rsa-sign-verify-throughput.js
+++ b/benchmark/crypto/rsa-sign-verify-throughput.js
@@ -24,8 +24,7 @@ var bench = common.createBenchmark(main, {
});
function main(conf) {
- var message = (new Buffer(conf.len)).fill('b');
-
+ var message = Buffer.alloc(conf.len, 'b');
bench.start();
StreamWrite(conf.algo, conf.keylen, message, conf.writes, conf.len);
}