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

Performance loading /results/ #4136

Open
7 tasks
gsnedders opened this issue Nov 25, 2024 · 3 comments
Open
7 tasks

Performance loading /results/ #4136

gsnedders opened this issue Nov 25, 2024 · 3 comments

Comments

@gsnedders
Copy link
Member

gsnedders commented Nov 25, 2024

Loading, e.g., https://wpt.fyi/?label=master&product=chrome%5Bstable%5D&product=edge%5Bstable%5D&product=firefox%5Bstable%5D&product=safari%5Bstable%5D&product=safari-18.0%20%2820619.1.26.31.6%29&product=firefox%5Bbeta%5D&product=firefox%5Bexperimental%5D on a bad network connection is a pretty awful experience, even on second load when everything is in cache, with a total transfer size of 1.85MB.

This shows up a variety of issues (which I'm not going to try and file separate issues for, given… bad internet):

@gsnedders gsnedders changed the title Performance loading results Performance loading /results/ Nov 25, 2024
@gsnedders
Copy link
Member Author

See also #1581, about us loading very many different small JS files on first-load. But those are all cached, so that's purely a first-load problem. (I mean also a more minor performance issue in general, but not really so relevant to this issue.)

@nicoburns
Copy link

WPT.fyi has always been slow. But I came here after loading it on a connection a decently fast connection (it's fibre-backed wifi) but slow ping times to much of the internet (because it's based in New Zealand). The site (home page) took 13 seconds to load.

One additional thing I noticed is that WPT.fyi seems to be using Polymer which is notorious slow even when properly bundled, and I wonder if perhaps this is one of those circumstances where a rewrite to new tech stack (both in terms of bundling and the client-side framework) might be justified. Although the ~300 http requests is probably the bigger issue.

@nicoburns
Copy link

Looking into this further, I think the most impactful change we could make would probably be an API that can send back summary results for "folders" of tests (such as the page for the "css" folder pictured below) without sending back results for each individual test.

Ideally we would precompute the summary data for each run, but it could also likely be done on demand by the backend much faster than sending the whole test result over the network and then processing on the frontend.

Image

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

2 participants