Skip to content

Commit 61f919d

Browse files
Merge pull request #28 from PondWader/fix-bench
Fix JSON benchmarks
2 parents 385dd3b + 8cc6f0f commit 61f919d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

bench/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ conditions.
1717
### Benchmark command:
1818

1919
```sh
20-
autocannon -b '{"a":1}' -H "Content-Type=application/json" localhost:3002 # or 3003
20+
autocannon -m POST -b '{"a":1}' -H "Content-Type=application/json" localhost:3002 # or 3003
2121
```
2222

2323
### Results

bench/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"description": "",
66
"main": "index.js",
77
"scripts": {
8-
"bench": "autocannon -b '{\"a\":1}' -H \"Content-Type=application/json\"",
8+
"bench": "autocannon -m POST -b '{\"a\":1}' -H \"Content-Type=application/json\"",
99
"bench:multipart": "autocannon -m POST --form '{ \"file\": { \"type\": \"file\", \"path\": \"./file.txt\" } }'"
1010
},
1111
"keywords": [],

0 commit comments

Comments
 (0)