0

I am running a sampler request with 1 VUser and using aggregate report as a Listener while have only 1 Vuser eg : 1Userthread and running the test i get the throughput as 2.9/sec as shown in the image 2.9/sec . I know throughtput is calculated as Throughput = (number of requests) / (average * number of requests) =1/(343*1) = 0.00291545 ms = 2.9Sec

But when i run the test with 2 threads 2Threads I get the throughtput as 2.5/sec 2.5 /sec Using the above formula for throughput (2)/(505*2) =0.0019802 which is not equal to throughput shown in the report . How is Throughput calculated when the Number of users are increased Thanks !!

1 Answer 1

1

I know throughtput is calculated as Throughput = (number of requests) / (average * number of requests) =1/(343*1) = 0.00291545 ms = 2.9Sec

I think what you "know" is not correct. According to JMeter Glossary:

Throughput is calculated as requests/unit of time. The time is calculated from the start of the first sample to the end of the last sample. This includes any intervals between samples, as it is supposed to represent the load on the server.

The formula is: Throughput = (number of requests) / (total time).

So you should divide the total number of requests by your test duration as this is what JMeter does under the hood.

More information: How do I Correlate the Number of (Concurrent) Users with Hits Per Second

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.