美文网首页
ab test with json data

ab test with json data

作者: Yves_lau | 来源:发表于2015-10-13 15:50 被阅读1684次
# post.json contains the json you want to post
# -p means  POST 
# -T sets the Content-Type
# -c is concurrent clients
# -n is the number of requests to run in the test
#!/bin/bash
ab -n 200 -c 10  -T 'application/json' -p post.json http://127.0.0.1:8002/webapi/ 

post.json

{
    "jsonrpc": "2.0",
    "method": "test_method",
    "params": [1442885518, 1442892718,"testDomain_80"],
    "id": "1"
}

相关文章

网友评论

      本文标题:ab test with json data

      本文链接:https://www.haomeiwen.com/subject/niyocttx.html