The performance of pressure sensing Jmeter Stepping Thread Group gradually increase the number of simultaneous concurrent pressing stepped (15) to (reproduced)

 

Some time ago described performance test type

  • Configuring load
  1. Big Bang: load while producing
  2. Ramp up: start when a certain load, and then from time to time to add some load until the target load, which is typical mode
  3. Ramp-up (with step): generating a load segment. For example, a total of 1000 users load, but we need to observe the system at 250, 500, 700 performance under load, after reaching these loads need to run some time to add a new load
  4. Ramp up (with step), ramp down (with step): Similarly with the above, only the last load back to 0
  5. Delayed start: delayed start
  • Testing Process
  1. Tested for capacity for each use case: load policy generally ramp-up or ramp-up with step
  2. Example of performance problems with the isolation test
  3. Tested for capacity with Example Group
  4. Isolation of test cases Group: Load Policy is generally ramp-up or ramp-up with step
  5. Pressure test with Example Group
  6. Stability testing of Example Group use

For the embodiment of the pressure load the configuration settings need to install a plug-in to use Stepping Thread Group

 

Download link: https: //jmeter-plugins.org/downloads/old/

After the download, unzip the bag on JMeterPlugins-Standard.jar under jmeter-3.0 \ lib \ ext path jmeter installation directory, you can restart jemter. This article has been before installation.

复制代码
功能参数设置
This group will start 100 threads:设置线程组启动的线程总数为100个; First,wait for N seconds:启动第一个线程之前,需要等待N秒; Then start N threads:设置最开始时启动N个线程; Next,add 10 threads every 30 seconds,using ramp-up 5 seconds:接下来,每30秒添加10个线程,在5秒的时间段; Then hold load for 60 seconds:启动的线程总数达到最大值之后,再持续运行60秒; Finally,stop 5 threads every 1 seconds:最后,每1秒停止5个线程;
复制代码

 

例如:总共启100个线程,先启动10个线程,压测60s,然后再1秒启动10个(即20个) 线程持续压测60s......30个线程...40.....50....,直到100线程全部启动完毕,持续跑300s。

 

这边压测了50个并发数  持续压测10min
QPS = samples/压测时间(s)      ——————————>  220976/600s = 368.29
QPS = 并发数(即50)/rt (s)   ——————————>  50/0.15 = 333.333333
这2者相差不大 即是指标要求标准
如下两图 tps可以看到达到480+
看监控的edas数据查看qps的数据 与算出的数据相差不大,达到了480+

Guess you like

Origin www.cnblogs.com/yuany66/p/10979502.html