httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tom wheeler <tomwheeler1...@gmail.com>
Subject [users@httpd] Post many POST data with ab tool
Date Sat, 27 Dec 2014 07:50:07 GMT
Hi,
I want to ask a question related to Apache Benchmark Tool, $ ab.

For example, for now I can post an JSON object (stored in /tmp/data ) with
-p /tmp/data option like this :
{
        "query" : {
                "bool" : {
                        "should" : [
                                { "match" : { "gender" : "Male"}},
                                { "match" : { "first_name" : "Albert"}},
                                { "match" : { "last_name" : "Roy"}},
                                { "match" : { "country" : "Canada"}},
                                { "match" : { "languages" : "Azeri"}},
                                { "match" : { "drugs" : "Loratadine"}},
                                { "match" : { "currency" : "Rial"}}
                        ]
                }
        }
}
If I want to post another object, I have to run ab again with different
option, -p /tmp/data2.
My question is, how can I put 2 JSON objects in one file, /tmp/data, so ab
can post these 2 object in 2 separated requests ?
Thanks.

Mime
View raw message