Bug 64846 - Total Throughput calculation on html report is not correct
Summary: Total Throughput calculation on html report is not correct
Status: NEW
Alias: None
Product: JMeter
Classification: Unclassified
Component: Main (show other bugs)
Version: 5.3
Hardware: PC Linux
: P1 major (vote)
Target Milestone: JMETER_5.3.0
Assignee: JMeter issues mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-10-23 13:53 UTC by Ashok Reddy
Modified: 2021-07-14 14:52 UTC (History)
1 user (show)



Attachments
sum of all sample request throughput is not matching with total tps (180.84 KB, image/png)
2020-10-23 13:53 UTC, Ashok Reddy
Details
Please find schema for same test plan (14.92 KB, text/html)
2020-10-27 04:02 UTC, Ashok Reddy
Details
TPS per sample occurrence duration vs TPS per test duration (145.37 KB, image/jpeg)
2021-07-14 14:52 UTC, piotr.mirek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ashok Reddy 2020-10-23 13:53:12 UTC
Created attachment 37530 [details]
sum of all sample request throughput is not matching with total tps

sum of all sample request throughput is not matching with total throughput:

Example:-
sample 1 throughput - 9528.37
sample 2 throughput  - 2219.28
sample 3 throughput - 1900.87
sample 4 throughput - 3443.52

---------------------------------
Sum of all samples -  9528.37+2219.28+1900.87+3443.52 = 17092.04  but in HTML report total throughput is showing as 7603.34


can you plz help how this calculation happens

output summary:-
summary = 10500000 in 00:23:01 = 7601.6/s Avg:    54 Min:     3 Max:  2479 Err:   441 (0.00%)
Comment 1 Philippe Mouawad 2020-10-24 14:18:03 UTC
Can you open your test plan and run :

Tools > Generate Schematic Overview

and attach result here.

Thanks
Comment 2 Ashok Reddy 2020-10-27 04:02:17 UTC
Created attachment 37535 [details]
Please find schema for same test plan
Comment 3 Ashok Reddy 2020-11-03 10:16:50 UTC
any update on this issue
Comment 4 piotr.mirek 2021-07-14 14:52:30 UTC
Created attachment 37954 [details]
TPS per sample occurrence duration vs TPS per test duration

My guess is that jmeter TPS is calculated for each sampler bases with it's start/end time, which will give different results when you do the same for whole group. Please see the the attachment.

As you can see for "reset-wiremock" example (single request sent), JMeter calculated throughput for time between the first sample going out timestamp and last sample coming in timestamp, which results with 3.2 TPS for single request over 300 seconds (1 sample and duration 0.312s -> 3.2 TPS). 

It's a matter of question, how you would like to calculate TPS for each sampler - per sampler occurrence, or per whole test