Jmeter - Difference between network time and server time

Source: http://asmetg.blog.163.com/blog/static/105828863201111644313362/

In LR, there is a "web page subdivision graph". Through this graph, you can easily distinguish which requests have the longest response time. If the response time process is consumed in server processing, or consumed in network transmission In the process - that is, the so-called Server time and Network time.
JMeter  does not provide such a detailed distinction - at least not yet found, but there is also a field in the execution result of JMeter that can be used. If you want to see this item, you must first set the JMeter run result to be saved in XML format. Find JMeter .save.saveservice.output_format=csv in JMeter .properties and change to JMeter .save.saveservice.output_format=xml Restart JMeter , execute a script and save the test results. Use any text editor to open the .jtl file with the following content:    
  


  


 1 <?xml version="1.0" encoding="UTF-8"?>
 2 <testResults version="1.2">
 3 <httpSample t="2969" lt="1906" ts="1159349557390" s="true" lb="http://jackei.cnblogs.com/" rc="200" rm="OK" tn="Thread Group 1-1" dt="text" ng="5" na="5"/>
 4 <httpSample t="2797" lt="1719" ts="1159349557609" s="true" lb="http://jackei.cnblogs.com/" rc="200" rm="OK" tn="Thread Group 1-2" dt="text" ng="5" na="5"/>
 5 <httpSample t="2625" lt="1594" ts="1159349558015" s="true" lb="http://jackei.cnblogs.com/" rc="200" rm="OK" tn="Thread Group 1-4" dt="text" ng="5" na="5"/>
6</testResults>


Find the item lt. Explain what lt means.
lt = latency time (ms) When executing a script
in JMeter , the approximate process is as follows:  

Start timer
Send Request
Wait for data
Initial (first) response packet occurs - this is latency
more data
...
end of response
Stop timer - this is the response time


Here you can see that lt is the time when the first packet of the response was received.

In the above XML file, the item t represents the elapsed time. That is, the time from when a request is sent to when a complete response is received.
Then lt is equivalent to Server time in LR, and t-lt is equivalent to Netwrok time in LR.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326530263&siteId=291194637