1
votes

Need help on JMeter response result from the image

My scenario: Am calculating Min/Max/Average response time on Api creating a user account.

1.Login to site

2.Using API request creating a user account - (creating 100 users account using API)

3.Logout.

Observation :

  • Total elapsed time is 32 mins (which is there in the image).

  • Response time for 100 users is 90852.

I need to understand how the response time units are measured here.

  1. does 90852 milliseconds mean approximately 90secs.

    So is it like a single user account is created in 90 secs by the API?.

    So, please tell me how response time is working here when it compared with total response time?

Thanks :)

3

3 Answers

0
votes

The average creation of a user took your API 908 ms (the entry with 100 samples ending with /api/users).

Since the line (where the name of the transaction is not in the screenshot) has the sample count 1 and the response time resembles 100*908ms I would guess that you have a Transaction Controller that holds the Loop Controller.

The same hierarchy that you use to organize your test plan also applies to transaction controllers and samplers. So if you group several samplers - and/or transaction controllers - under a parent transaction controller, that parent transaction controller will have the combined response time of all its children.

0
votes

Response time for 100 users is 90852. - No, only for 1 user. Looking at your image it appears that only 1 sample was collected during 32 mins. So this response time is for that 1 sample not for all 100 users. JMeter only shows you completed responses. Assuming you have a thread group of 100 users, the rest didn't complete / were waiting for the api to respond.

Does 90852 milliseconds mean approximately 90secs. - yes. In your api you seem to be using once only controller for login and authenticate and everything else seems to be running sequentially. So if you are load testing have a slow api response then you won't be able to measure other throughput for the rest of the apis correctly as the slowest api will hold up the thread for a long time.

Hope this helps.

0
votes

It is hard to provide comprehensive analysis without seeing your Test Plan.

When it comes to your questions:

Total elapsed time is 32 mins (which is there in the image).

this looks a little bit high for me, given you create 100 user accounts and average response time is 908 milliseconds I would expect that your test will finish in 90.8 seconds which is 1.5 minutes.

does 90852 milliseconds mean approximately 90secs.

it rather looks like a sum of all 100 response times most probably you got it from the Transaction Controller

Average Response time is basically arithmetic mean, to wit sum of all response times divided by their count.

  1. First of all you need to understand why does you test take that long.
  2. You seem to be creating 100 user accounts using 1 thread (virtual user) in loop, you might want to consider doing it with multiple threads instead
  3. You should be using JMeter GUI only for tests development and/or debugging, when it comes to test execution you should be running your JMeter tests in command-line non-GUI mode like:

    jmeter -n -t test.jmx -l result.jtl