diff options
Diffstat (limited to 'benchmark/http/client-request-body.js')
-rw-r--r-- | benchmark/http/client-request-body.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/benchmark/http/client-request-body.js b/benchmark/http/client-request-body.js index befa3811dd..8d7fae44c1 100644 --- a/benchmark/http/client-request-body.js +++ b/benchmark/http/client-request-body.js @@ -19,8 +19,7 @@ function main(conf) { var chunk; switch (conf.type) { case 'buf': - chunk = new Buffer(len); - chunk.fill('x'); + chunk = Buffer.alloc(len, 'x'); break; case 'utf': encoding = 'utf8'; |