diff options
Diffstat (limited to 'benchmark/streams/pipe.js')
-rw-r--r-- | benchmark/streams/pipe.js | 2 |
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(); |