Testing with JMeter: how to run N requests per second

后端 未结 5 2029
醉话见心
醉话见心 2020-12-22 22:56

I need to test if our system can perform N requests per second. Technically, it\'s 2 requests to one API, 2 requests to another, and 6 requests to third one. But the importa

5条回答
  •  借酒劲吻你
    2020-12-22 23:48

    I had similar problem and here are two solutions I found:

    Solution 1:
    You can use Stepping Thread Group (allows to set thread number increase stages over set periods of time) with Constant Throughput Timer in it. Throughput Timer allows you to set number of samples that thread can send per minute (e.g. if you set it to 1, the thread will only send one request per minute). Also, you can apply Throughput Timer to all threads in your Thread Group or have Timer for each thread with its own settings. Read more about Throughput Timer here: https://www.blazemeter.com/blog/how-use-jmeters-throughput-constant-timer

    Solution 2:
    Use "SetUp Thread Group". You can calculate thread number and rump up time to get Threads per Second desired.

提交回复
热议问题