您可以使用ConstantThroughputTimer。
引用以下JMeter帮助文件:
18.6.4恒定吞吐量计时器 该计时器引入了可变的暂停时间,计算该暂停时间是为了使总吞吐量(以每分钟的样本数为单位)尽可能接近给定的数字。 当然,如果服务器无法处理吞吐量,或者其他计时器或耗时的测试元素阻止了吞吐量,则吞吐量会降低。 N.B. 尽管该计时器称为恒定吞吐量计时器,但吞吐量值不需要恒定。 可以根据变量或函数调用进行定义,并且可以在测试期间更改其值。
例如,我使用它每秒生成40个请求:
all active threads in current thread group
throughput
2400.0
0.0
多数民众赞成在一个摘要:
Created the tree successfully using performance/search-performance.jmx
Starting the test @ Tue Mar 15 16:28:39 CET 2011 (1300202919244)
Waiting for possible shutdown message on port 4445
Generate Summary Results + 3247 in 80,3s = 40,4/s Avg: 18 Min: 0 Max: 1328 Err: 108 (3,33%)
Generate Summary Results + 7199 in 180,0s = 40,0/s Avg: 15 Min: 1 Max: 2071 Err: 378 (5,25%)
Generate Summary Results = 10446 in 260,3s &#