When using HTTP Request sampler, for example, and ticking on the "Download images" checkbox, the sample for the web page will get the images and other resources downloaded for the page as subsamples. The time elapsed for the sample for the web page includes the time it takes to download the subsamples. But the number of bytes downloaded for each subsample is not added to the "parent" sample. Therefore the "number of bytes per second" in the "Summary report" is incorrect. I think the number of bytes for a sample should be updated to include the number of bytes for subsamples added to the sample.
Created attachment 20008 [details] Suggested patch The suggested patch updates the number of bytes for the sample who receives subsamples, so that the number of bytes is equal to the sum of bytes for its' subsamples, plus the number of bytes for the sample itself. I also think that it would be useful to show the number of bytes for the sample in the "ViewResultsFullVisualizer" GUI, so I've included that in the patch. And I have added some unit tests to TestSampleResults.
Thanks, fixed in r531175. By the way, I had to change assertEquals(1d / (totalTime / 1000d), calculator.getRate()); to assertEquals(1d / (totalTime / 1000d), calculator.getRate(),0d); as assertEquals(double,double) does not exist in the version of JUnit used by JMeter.
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/1917