jmeterperformance-testingjmeter-5.0

Response time for API request with "Retrieve All Embedded Resources" ON is taking less time than the one with this option OFF....How?


I was trying to assess one API for loading a dashboard. Strangely the same API request with "Retrieve All Embedded Resources" enabled is taking less time than if i uncheck this option for the same request. Am i missing something here or this is a probable scenario? Also the size of the data remains same in both cases. Usually the size should be higher in case of "Embedded resource" option enabled. Not sure what is going on over there. So am i missing something while enabling this option in the http request details HTTP Request Details

comparison of the response without/with embedded resource option from LHS to RHS


Solution

  • If you're testing an API you shouldn't enable this option.

    In case of API you're getting XML or JSON without any "embedded resources" like images, scripts, styles, fonts, sounds, etc.

    JMeter spends extra time parsing the response and trying to extract embedded resources URLs from there.