-
-
Notifications
You must be signed in to change notification settings - Fork 141
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
Running phantomas against single page applications #474
Comments
Measuring all the metrics while changing from page A to page B sounds definitely interesting to me. I never analyzed webperf on this kind of transition but I'm curious to see the results. Also I don't know any tool able to do it and that's a good enough reason to make it. SPA can be very CPU consuming on transitions, when new data needs to be transformed into DOM elements that are then rendered with the correct style and bound to events. I guess most of the frameworks do all of this in a single shot (synchronous JS) so it might be possible to measure this CPU time. Probably difficult, but possible. Not-parallelized ajax calls could be a performance problem too: a first call to the API triggers a second call, which triggers a third call... Don't know if it's a real case though. I'll try to think of some other possible problems. |
Here are some nice JS snippets that measure some Angular specific metrics: This can be a good starting point for transitions measurements. We probably won't be able to get metrics that work for every JS framework, so being framework specific could be a good solution. |
Last week I saw a great Velocity Conf talk, called "Measuring the performance of SPAs", by @nicjansma and @bluesmoon (hi there!). Both of them are contributors in Boomerang, a RUM tool. They are working on having similar metrics for a SPA. Slides are here: http:https://fr.slideshare.net/nicjansma/measuring-the-performance-of-single-page-applications TL;DR It's not easy. Here is what they do:
|
Thanks @gmetais, this is a really cool project that I hadn't heard about before. The SPA-monitoring code we have is in akamai/boomerang#68 in Monitoring SPAs is hard! |
@gmetais, thanks for the links. I guess one would need to write an app-specific custom module to monitor single page application. |
@william-p / @gmetais - any suggestions / examples?
The text was updated successfully, but these errors were encountered: