diff --git a/bench/index.md b/bench/index.md index d747666..204c70d 100644 --- a/bench/index.md +++ b/bench/index.md @@ -17,7 +17,7 @@ conditions. ### Benchmark command: ```sh -autocannon -b '{"a":1}' -H "Content-Type=application/json" localhost:3002 # or 3003 +autocannon -m POST -b '{"a":1}' -H "Content-Type=application/json" localhost:3002 # or 3003 ``` ### Results diff --git a/bench/package.json b/bench/package.json index a37a9f1..b089e65 100644 --- a/bench/package.json +++ b/bench/package.json @@ -5,7 +5,7 @@ "description": "", "main": "index.js", "scripts": { - "bench": "autocannon -b '{\"a\":1}' -H \"Content-Type=application/json\"", + "bench": "autocannon -m POST -b '{\"a\":1}' -H \"Content-Type=application/json\"", "bench:multipart": "autocannon -m POST --form '{ \"file\": { \"type\": \"file\", \"path\": \"./file.txt\" } }'" }, "keywords": [],