-
Notifications
You must be signed in to change notification settings - Fork 196
metrics: report: % diff row seems to calculate incorrectly #709
Comments
@GabyCT - would you like to take a look at this? (it will be a nice first entree into the report generation innards as well ;-) ). Pull me in if you need some help or input. |
@grahamwhaley let me take a look |
@grahamwhaley , I have a question about this, in the report I see PSS footprint and results for |
@grahamwhaley , I could not generate the report generation, I got an error #733 |
@grahamwhaley ping ^^^ |
Ah, forgot to reply to that bit ;-) If we grab the example from the pdf results over on kata-containers/agent#353 as an example:
Then you should be able to see that the % diff is calculated down the columns - so is comparing noKSM against noKSM and KSM against KSM - that is, we are comparing like-for-like across the two different data captures. What I think is broken though is how we (I ;-)) calculate the actual % value and show it. In the above example, by my calculation, that first % for noKSM would look much better if it said '176.8' for instance, which is the increase of the second run over the first. Thus, I think the output example above should look more like:
To me that gives a much more useful view. But, wdyt @GabyCT - I'm interested in what others think on how we should try to calculate and show the results. I think the one that really triggered this in my head was from an earlier report on that other agent PR, where the table looked like:
where that diff row is really confusing. I'd expect that to say something more like 50% or -50%. Still, either of those is better than what we have today I think. thx |
thanks @grahamwhaley for the explanation, yes the first result (first table) is kind of confusing to me. I really like the second table for me it makes the more clear the data. |
@grahamwhaley , in order to do the calculation I will use the percentage difference formula which is |
Fix the percentage difference calculation for the metrics report generation. Fixes kata-containers#709 Signed-off-by: Gabriela Cervantes <gabriela.cervantes.tellez@intel.com>
@grahamwhaley , I raised this PR please let me know what do you think #775 |
Fix the percentage difference calculation for the metrics report generation. Fixes kata-containers#709 Signed-off-by: Gabriela Cervantes <gabriela.cervantes.tellez@intel.com>
Fix the percentage difference calculation for the metrics report generation. Fixes kata-containers#709 Signed-off-by: Gabriela Cervantes <gabriela.cervantes.tellez@intel.com>
Looking at some reports, it seems the % row calculation for at least the footprint might be incorrect.
If you have a look at the metrics_report.pdf attached at kata-containers/agent#353 (comment) then I think we can see the match is wrong.
The relevant code to inspect is at:
https://github.com/kata-containers/tests/blob/master/metrics/report/report_dockerfile/memory-footprint.R#L79-L92
Note - the % calculation will always have to be a '% of one entry vs the other' - presently I believe it is meant to be 'the % difference the second set of data has relative to the first set' iyswim. We'll have to keep that in mind, and how to best present it, whilst fixing the issue.
The text was updated successfully, but these errors were encountered: