summaryrefslogtreecommitdiff
path: root/benchmark/tls/throughput.js
diff options
context:
space:
mode:
Diffstat (limited to 'benchmark/tls/throughput.js')
-rw-r--r--benchmark/tls/throughput.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/benchmark/tls/throughput.js b/benchmark/tls/throughput.js
index 7b545267ac..d0de99e7b5 100644
--- a/benchmark/tls/throughput.js
+++ b/benchmark/tls/throughput.js
@@ -23,8 +23,7 @@ function main(conf) {
var chunk;
switch (type) {
case 'buf':
- chunk = new Buffer(size);
- chunk.fill('b');
+ chunk = Buffer.alloc(size, 'b');
break;
case 'asc':
chunk = new Array(size + 1).join('a');
@@ -74,4 +73,3 @@ function main(conf) {
server.close();
}
}
-