diff options
Diffstat (limited to 'benchmark/fs/read-stream-throughput.js')
-rw-r--r-- | benchmark/fs/read-stream-throughput.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/benchmark/fs/read-stream-throughput.js b/benchmark/fs/read-stream-throughput.js index c305485cd5..bc55e44c1a 100644 --- a/benchmark/fs/read-stream-throughput.js +++ b/benchmark/fs/read-stream-throughput.js @@ -60,7 +60,7 @@ function runTest() { } function makeFile() { - var buf = new Buffer(filesize / 1024); + var buf = Buffer.allocUnsafe(filesize / 1024); if (encoding === 'utf8') { // ΓΌ for (var i = 0; i < buf.length; i++) { |