summaryrefslogtreecommitdiff
path: root/benchmark/streams/pipe.js
diff options
context:
space:
mode:
Diffstat (limited to 'benchmark/streams/pipe.js')
-rw-r--r--benchmark/streams/pipe.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/benchmark/streams/pipe.js b/benchmark/streams/pipe.js
index a7d67b7d69..4baeeb2d2e 100644
--- a/benchmark/streams/pipe.js
+++ b/benchmark/streams/pipe.js
@@ -8,7 +8,7 @@ const bench = common.createBenchmark(main, {
});
function main({ n }) {
- const b = new Buffer(1024);
+ const b = Buffer.alloc(1024);
const r = new Readable();
const w = new Writable();