JMeter - Constant Throughput Timer Example

Constant Throughput Timer is i of the by in addition to large used timer inward jmeter software charge exam plan. Using constant throughput timer, You tin give the sack hit upward one's withdraw heed how many samples should live on executed per minute. Constant throughput timer volition add together random pauses betwixt requests during exam execution to fit required throughput figure(samples per minute). Let's larn usage of constant throughput timer inward apache jmeter software charge exam plan.

Note : If you lot are using constant throughput timer inward your software charge exam innovation in addition to server is non capable to handgrip the charge or whatever other fourth dimension consuming elements are available inward your exam innovation in addition to thence your targeted throughput(Which is laid inward constant throughput timer) volition live on non achieved.

Add Constant Throughput Timer In Software Load Test Plan
Generally constant throughput timer is beingness added nether controller, parallel to requests. For adding constant throughput timer nether controller,
  • Right click on your controller -> Add -> Select Timer -> Constant Throughput Timer. See below given image.

It volition add together constant throughput timer nether controller.

Example : Using Constant Throughput Timer In JMeter Software Load Test Plan
I convey prepared sample jmeter software charge exam innovation to exhibit you lot how truly constant throughput timer works.

Scenario 1 : I convey 1 asking inward my software charge exam innovation in addition to i wants to execute cook xx requests per minute. My software charge exam innovation configuration is every bit below.

I convey laid Number of threads = 1, Ramp-Up Period = 1 in addition to Loop Count = Forever In thread grouping properties.


Added constant throughput timer with Target Throughput = xx and Calculate Throughput based on = all active threads every bit shown inward below image. That agency i wants to execute xx requests per minute.


Now if you lot volition run higher upward constant throughput sample charge exam plan, upshot volition looks similar below.


You tin give the sack encounter that Start fourth dimension departure betwixt 1st sample in addition to 21st sample is 1 minute. That agency my targeted throughput(20 samples per minute) is achieved.

Scenario two : I wants to run two threads in addition to execute xl requests per infinitesimal using constant throughput timer.

So my thread grouping configuration is every bit below. I convey laid Number of threads = 2.


Constant throughput timer configuration is every bit below. Set Target Throughput = 40.


Test execution upshot volition looks similar below.


You tin give the sack encounter that Start fourth dimension departure betwixt 1st asking in addition to 41st asking is 1 minute. That agency xl samples has been executed inward 1 minute.

This way, You tin give the sack purpose constant throughput timer inward your charge exam innovation to attain targeted throughput.

More interesting articles here :Generation Enggelmundus Internet Marketing Tool here :Zeageat IM http://www.software-testing-tutorials-automation.com/
Post a Comment (0)
Previous Post Next Post