Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mis-leading Summary statistics #1

Open
shanti opened this issue Jan 30, 2013 · 3 comments
Open

Mis-leading Summary statistics #1

shanti opened this issue Jan 30, 2013 · 3 comments
Assignees

Comments

@shanti
Copy link

shanti commented Jan 30, 2013

Looking at the code in HAR.py, it appears that the various times being reported in the Summary stats are being computed by simply adding up the respective times across all the resources. This makes it appear that the times are much larger than they actually are.
This is because, when there are 6-8 parallel connections made by the browser, many of these har entries reflect actions that are taking place at the same time. So simply summing up the numbers does not give an accurate picture.
To compute this accurately, the non-overlapping times for each type (e.g. connection time, server time) across the timeline needs to be computed and summed.

@pavel-paulau
Copy link
Owner

This is probably misleading but apparently not unique. For instance, dynaTrace Ajax Edition used to show the same stats.

https://apmcommunity.compuware.com/community/display/PUB/Best+Practices+on+Web+Site+Performance+Optimization

@ghost ghost assigned pavel-paulau Jan 30, 2013
@mrname
Copy link

mrname commented May 2, 2015

I would like to utilize HAR storage, but I would agree with @shanti that the total asset load times should be computed in terms of asynchronous loading, as opposed to total load time. I am looking at the code right now to see if I can help out with a pull request. In the meantime (if it is helpful to anyone), I created this python module for analyzing HAR files, which provides total asset load times in terms of browser load:

https://github.com/mrname/haralyzer

@pavel-paulau
Copy link
Owner

I can help out with a pull request.

Pull requests are always welcome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants