问题
I have a transaction controller that contains two HTTP requests. After executing the test, the 90% response time for two HTTP requests is 4 & 5 seconds respectively. But the 90% response time for the transaction controller is 21 seconds. I don't understand how is JMeter giving 21 seconds response time for the parent transaction controller (I assume it should summarize the child HTTP request response times and display 4+5= 9 seconds)? Could you please help me with this?
回答1:
Transaction Controller should sum up the response time of all nested Samplers and normally the numbers should be consistent:
However given the situation when your Samplers have PreProcessors, Post-Processors or Timers and you tick Include duration of timer and pre-post processors in generated sample
box - the time taken by the aforementioned test elements will also be included into Transaction Controller's Response Time
More information: Using JMeter's Transaction Controller
回答2:
Transaction Controller gives the overall response time of the http samples + Timer + any pre or post processors.
来源:https://stackoverflow.com/questions/55039592/how-to-understand-transaction-controller-response-time