Jmeter - Constant throughput timer - Requests for per second

241 Views Asked by At

Is there any function in JMeter using groovy, beanshell to give Target throughput in seconds? Please help

1

There are 1 best solutions below

0
Dmitri T On BEST ANSWER

If you want convert requests per minute into requests per second you need to multiply the value by 60.

The relevant __groovy() function would be something like:

${__groovy(target_throughput_in_requests_per_second * 60,)}

More information on Groovy scripting in JMeter: Apache Groovy: What Is Groovy Used For?

Also be informed that:

  • Constant Throughput Timer is precise enough on minute level so you might need to adjust your ramp-up period or consider using Precise Throughput Timer instead
  • Constant Throughput Timer can only pause the threads to limit JMeter's requests execution rate to the given value so make sure to supply sufficient amount in the Thread Group