Post many POST data with ab tool

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux