summaryrefslogtreecommitdiff
path: root/benchmark/http/end-vs-write-end.js
diff options
context:
space:
mode:
Diffstat (limited to 'benchmark/http/end-vs-write-end.js')
-rw-r--r--benchmark/http/end-vs-write-end.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/benchmark/http/end-vs-write-end.js b/benchmark/http/end-vs-write-end.js
index 4e12e543f0..0cdc88111d 100644
--- a/benchmark/http/end-vs-write-end.js
+++ b/benchmark/http/end-vs-write-end.js
@@ -23,8 +23,7 @@ function main(conf) {
var len = conf.kb * 1024;
switch (conf.type) {
case 'buf':
- chunk = new Buffer(len);
- chunk.fill('x');
+ chunk = Buffer.alloc(len, 'x');
break;
case 'utf':
chunk = new Array(len / 2 + 1).join('ΓΌ');