summaryrefslogtreecommitdiff
path: root/benchmark/crypto/cipher-stream.js
diff options
context:
space:
mode:
Diffstat (limited to 'benchmark/crypto/cipher-stream.js')
-rw-r--r--benchmark/crypto/cipher-stream.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/benchmark/crypto/cipher-stream.js b/benchmark/crypto/cipher-stream.js
index 11e2c38c0b..03780ba130 100644
--- a/benchmark/crypto/cipher-stream.js
+++ b/benchmark/crypto/cipher-stream.js
@@ -40,11 +40,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':