-
-
Notifications
You must be signed in to change notification settings - Fork 602
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
same values in google web vitals across transactions #4297
Comments
Hi @prim84 sorry I missed your message. Those metrics are direct from the browser APIs. At the moment Chrome and other s do not update them (I think your app is SPA). Until soft navigations and browser update the APIs, they will be the same. I usually use visuals metrics for those pages to get some valuable data from the tests. |
Hi @soulgalore.. Salesforce has mentioned that their application is not a SPA.. But the lightening components uses AJAX that refreshes parts of the page. I also logged the URL between the transactions, and it changes like below. |
@soulgalore please let us know the what are the dependencies required for visualmetrics. |
Hi @prim84 what OS are you using? You need FFmpeg and a couple of Python dependencies. For Linux you can see what's needed at https://www.sitespeed.io/documentation/sitespeed.io/installation/#linux |
Thanks for the response @soulgalore . We are using windows OS. can you share the link for windows also . Meanwhile, We did follow the below link and installed the python modules listed. https://github.com/sitespeedio/browsertime/blob/main/.github/workflows/windows.yml#L22-L30C37 But , while executing python visualmetrics.py --check Are these also python files? Please let us know from where should that be installed? |
Ah yes that should work. I think the check could be old, so you can skip that (it was for an old version where imagemagick was used). Let me remove that. |
Followed the steps and installed the dependencies. and then tried to execute sitespeed script as node sitespeed.js --script.mjs --multi --browsertime.iterations 1 --browsertime.skipHar --video --visualMetrics. It throws the following error. [2024-10-25 12:13:35] INFO: Get visual metrics from the video |
@soulgalore.. For an SPA application, google web vitals like FCP LCP, TTFB remains the same for all transactions But Page metrics CPU metrics, total blocking time, max potential FID varies. These repetitive values... should they be considered as wrong values or it is the right values since that is how the application is built ( it refreshes only a portion of the page). |
Chrome only report FCP/LCP etc for the first view. You can read about how they handle metrics in https://web.dev/articles/vitals-spa-faq |
@soulgalore . We tried the same usecase with google lighthouse through the same chrome browser and we are able to see FCP,LCP for all the transactions. This issue is only with sitespeed? Also is there a way to get google lighthouse metrics through sitespeed? This way we can overcome this challenge. I know visualmetrics is another option. But currently we are facing lots of issues in getting it enabled. |
No I don't think so, can you show me exactly how you do that? Then it's easier to see what's going on. You can run the lighthouse container to get Lighthouse metrics, but it will get them page by page and not as a user journey. |
currently we are testing client side metrics using Jmeter selenium framework. Since this framework only provides response time metrics, we are migrating to sitespeed to gather more client side metrics like FCP, LCP,CLS,TTFB, page size.
Application tested- Salesforce (It is not a SPA application . The URL changes for each transaction)
Sitespeed tool version used - 34.12.1 browser time 22.10.2 coach 8.0.2
Browser used - chrome 129
How to reproduce
Execute a user journey (from launch to logout scripted using javascript) and run it locally (not using docker) using the following command.
node sitespeed.js --script.mjs --multi --browsertime.iterations 1 --spa
Issue
For ex, if there are 5 transactions in a user journey. Except the launch transaction, all other transactions shows the same values for google web vitals (TTFB,FCP,LCP,CLS) . But the values for page metrics , CPU metrics, waterfall HAR, Coach score varies.
Transaction Name Total page transfer size Request Fully Loaded TTFB FCP LCP
Launch 7 10 9.25 1.78 1.96 5.23
Login 7.6 226 21.49 2.37 2.52 9.69
Search 39.2 5 2.218 2.37 2.52 9.69
Edit 18.3 7 834ms 2.37 2.52 9.69
The text was updated successfully, but these errors were encountered: