본문 바로가기

Develop/Linux

Json curl and a/b benchmark

Send curl with json data from file.

curl -X POST -H "Content-Type: application/json" -d @ab_post_data.json {{url}}


a/b benchmark with json data from file.

ab  -n 10000 -c 100 -T application/json -p /home/rock/ab_post_data.json {{url}}