summaryrefslogtreecommitdiff
path: root/benchmark/net/net-pipe.js
diff options
context:
space:
mode:
Diffstat (limited to 'benchmark/net/net-pipe.js')
-rw-r--r--benchmark/net/net-pipe.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/benchmark/net/net-pipe.js b/benchmark/net/net-pipe.js
index ea8af249a3..b6e95a8b75 100644
--- a/benchmark/net/net-pipe.js
+++ b/benchmark/net/net-pipe.js
@@ -23,8 +23,7 @@ function main(conf) {
switch (type) {
case 'buf':
- chunk = new Buffer(len);
- chunk.fill('x');
+ chunk = Buffer.alloc(len, 'x');
break;
case 'utf':
encoding = 'utf8';