Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnna Henningsen <anna@addaleax.net>2020-02-10 22:03:46 +0300
committerAnna Henningsen <anna@addaleax.net>2020-02-11 00:35:35 +0300
commit4671d551cf9210434bdadf65ee5654606d24da70 (patch)
tree5ae6f7f090bcb0e9e58d2753a6af04de8574e717 /benchmark/http/end-vs-write-end.js
parentaa0a01bd36101ab087f81a7e8caeca9d3ccc9beb (diff)
Revert "benchmark: add `test` and `all` options and improve errors"
This reverts commit dac579516ca662e731ac502c15e75009a2b9a8c9. Refs: https://github.com/nodejs/node/pull/31396 PR-URL: https://github.com/nodejs/node/pull/31722 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Vladimir de Turckheim <vlad2t@hotmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Diffstat (limited to 'benchmark/http/end-vs-write-end.js')
-rw-r--r--benchmark/http/end-vs-write-end.js8
1 files changed, 3 insertions, 5 deletions
diff --git a/benchmark/http/end-vs-write-end.js b/benchmark/http/end-vs-write-end.js
index 60174ef3adf..38e9b89a97a 100644
--- a/benchmark/http/end-vs-write-end.js
+++ b/benchmark/http/end-vs-write-end.js
@@ -14,11 +14,10 @@ const bench = common.createBenchmark(main, {
type: ['asc', 'utf', 'buf'],
len: [64 * 1024, 128 * 1024, 256 * 1024, 1024 * 1024],
c: [100],
- method: ['write', 'end'],
- duration: 5
+ method: ['write', 'end']
});
-function main({ len, type, method, c, duration }) {
+function main({ len, type, method, c }) {
const http = require('http');
let chunk;
switch (type) {
@@ -50,8 +49,7 @@ function main({ len, type, method, c, duration }) {
server.listen(common.PORT, () => {
bench.http({
- connections: c,
- duration
+ connections: c
}, () => {
server.close();
});