Changing POST data used by Apache Bench per iteration

后端 未结 3 2162
南笙
南笙 2021-02-12 12:59

I\'m using ab to do some load testing, and it\'s important that the supplied querystring (or POST) parameters change between requests.

I.e. I need to make requests to UR

3条回答
  •  醉酒成梦
    2021-02-12 13:39

    Here is patched version of ab or patch: http://www.andboson.com/?p=1372

    this version is included that patch http://chrismiles.info/dev/testing/ab also can read many post-data line by line

    upd: sample request:

    ./ab -v1 -n2 -c1 -T'application/json' -ppostfile http://api.webhookinbox.com/i/HX6mC1WS/in/

    postfile content:

    {"data1":1, "data2":"4"} {"data0":0, "x":"y"}

    upd2:

    also alternative https://github.com/andboson/ab-go

提交回复
热议问题