diff options
author | Anna Henningsen <anna@addaleax.net> | 2020-02-10 22:03:46 +0300 |
---|---|---|
committer | Anna Henningsen <anna@addaleax.net> | 2020-02-11 00:35:35 +0300 |
commit | 4671d551cf9210434bdadf65ee5654606d24da70 (patch) | |
tree | 5ae6f7f090bcb0e9e58d2753a6af04de8574e717 /benchmark/http/end-vs-write-end.js | |
parent | aa0a01bd36101ab087f81a7e8caeca9d3ccc9beb (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.js | 8 |
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(); }); |