aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-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,