如何使JMETER在1秒内发起166个请求?

huangapple go评论64阅读模式
英文:

How to make JMETER make 166 requests in 1 second?

问题

我需要对某个服务进行压力测试,我需要进行 10,000 次请求。
如何在 1 秒内正确地进行 166 次请求?
我下面的设置是否正确?(下面是图片)
如何使JMETER在1秒内发起166个请求?

英文:

I need to make stress testing for some service and I need to make 10 000 requests.
How to make correctly 166 requests in 1 second ?
Have I made correct settings below ? (picture below)
如何使JMETER在1秒内发起166个请求?

答案1

得分: 1

如果您想要在1秒内进行166次请求并且在这里停止,以下是相关的线程组设置:

如何使JMETER在1秒内发起166个请求?

如果您想要在1分钟内每秒进行166次请求,总共9960次请求,最好考虑使用配置如下的吞吐量整形定时器

如何使JMETER在1秒内发起166个请求?

在这种情况下,使用并发线程组可能是有意义的,它可以通过反馈功能连接到吞吐量整形定时器,这样JMeter可以在当前数量不足以执行所需的每秒请求数时启动额外的线程。

英文:

If you want to make 166 requests in 1 second and stop here is the relevant Thread Group setup:

如何使JMETER在1秒内发起166个请求?

If you want to make 166 requests per second for 1 minute resulting in 9960 requests it's better to consider using Throughput Shaping Timer configured like:

如何使JMETER在1秒内发起166个请求?

in that case it makes sense to use Concurrency Thread Group which can be connected to the Throughput Shaping Timer via Feedback Function so JMeter could kick off extra threads if the current amount is not enough to conduct the necessary number of requests per second

答案2

得分: 1

Sure, here's the translation:

  1. 添加一个新线程组。
  2. 将线程数设置为166。
  3. 将启动延迟时间设置为1秒。
  4. 将循环条件设置为1。
  5. 然后实现HTTP请求并运行测试。
英文:
  1. Add a new thread group.
  2. Add 166 threads as thread count.
  3. Add 1 sec as Rampup time.
  4. Set looping condition as 1.
  5. Then Implement the HTTP request and run the test

huangapple
  • 本文由 发表于 2020年9月22日 20:05:52
  • 转载请务必保留本文链接:https://go.coder-hub.com/64009402.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定