diff options
Diffstat (limited to 'benchmark/dgram/single-buffer.js')
-rw-r--r-- | benchmark/dgram/single-buffer.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/benchmark/dgram/single-buffer.js b/benchmark/dgram/single-buffer.js index 765311a72f3..2676e0e74cf 100644 --- a/benchmark/dgram/single-buffer.js +++ b/benchmark/dgram/single-buffer.js @@ -25,7 +25,7 @@ function main(conf) { len = +conf.len; num = +conf.num; type = conf.type; - chunk = new Buffer(len); + chunk = Buffer.allocUnsafe(len); server(); } |