Fix benchmark script

This commit is contained in:
Chocobozzz 2022-03-21 08:24:07 +01:00
parent 5357ce9347
commit 4e5e072c1b
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 2 additions and 2 deletions

View File

@ -201,12 +201,12 @@ function runBenchmark (options: {
headers?: { [ id: string ]: string }
expecter: Function
}) {
const { method, path, body, expecter, headers } = options
const { method = 'GET', path, body, expecter, headers } = options
return new Promise((res, rej) => {
autocannon({
url: server.url + path,
method,
method: method,
body,
connections: 20,
headers,