summaryrefslogtreecommitdiff
path: root/benchmark/crypto/hash-stream-throughput.js
diff options
context:
space:
mode:
Diffstat (limited to 'benchmark/crypto/hash-stream-throughput.js')
-rw-r--r--benchmark/crypto/hash-stream-throughput.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/benchmark/crypto/hash-stream-throughput.js b/benchmark/crypto/hash-stream-throughput.js
index 732c2b89c7..bf426fc2c9 100644
--- a/benchmark/crypto/hash-stream-throughput.js
+++ b/benchmark/crypto/hash-stream-throughput.js
@@ -24,11 +24,11 @@ function main(conf) {
var encoding;
switch (conf.type) {
case 'asc':
- message = new Array(conf.len + 1).join('a');
+ message = 'a'.repeat(conf.len);
encoding = 'ascii';
break;
case 'utf':
- message = new Array(conf.len / 2 + 1).join('ü');
+ message = 'ü'.repeat(conf.len / 2);
encoding = 'utf8';
break;
case 'buf':