diff options
Diffstat (limited to 'benchmark/net/tcp-raw-pipe.js')
-rw-r--r-- | benchmark/net/tcp-raw-pipe.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/benchmark/net/tcp-raw-pipe.js b/benchmark/net/tcp-raw-pipe.js index b7c6776c95..0501d13f00 100644 --- a/benchmark/net/tcp-raw-pipe.js +++ b/benchmark/net/tcp-raw-pipe.js @@ -80,10 +80,10 @@ function client() { chunk = Buffer.alloc(len, 'x'); break; case 'utf': - chunk = new Array(len / 2 + 1).join('ü'); + chunk = 'ü'.repeat(len / 2); break; case 'asc': - chunk = new Array(len + 1).join('x'); + chunk = 'x'.repeat(len); break; default: throw new Error('invalid type: ' + type); |