aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-03-21 08:24:07 +0100
committerChocobozzz <me@florianbigard.com>2022-03-21 08:24:07 +0100
commit4e5e072c1b2f40f76a0df1b66a4a6949c42641df (patch)
tree3764203f2ad08c340c4b89592047e0116e7bff08
parent5357ce93474b59bac9c7b1fbe4224e0f1fb7ea66 (diff)
downloadPeerTube-4e5e072c1b2f40f76a0df1b66a4a6949c42641df.tar.gz
PeerTube-4e5e072c1b2f40f76a0df1b66a4a6949c42641df.tar.zst
PeerTube-4e5e072c1b2f40f76a0df1b66a4a6949c42641df.zip
Fix benchmark script
-rw-r--r--scripts/benchmark.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/benchmark.ts b/scripts/benchmark.ts
index 91e8b865a..37c740131 100644
--- a/scripts/benchmark.ts
+++ b/scripts/benchmark.ts
@@ -201,12 +201,12 @@ function runBenchmark (options: {
201 headers?: { [ id: string ]: string } 201 headers?: { [ id: string ]: string }
202 expecter: Function 202 expecter: Function
203}) { 203}) {
204 const { method, path, body, expecter, headers } = options 204 const { method = 'GET', path, body, expecter, headers } = options
205 205
206 return new Promise((res, rej) => { 206 return new Promise((res, rej) => {
207 autocannon({ 207 autocannon({
208 url: server.url + path, 208 url: server.url + path,
209 method, 209 method: method,
210 body, 210 body,
211 connections: 20, 211 connections: 20,
212 headers, 212 headers,