[SPOC V2] Performance report & greenlight
Categories
(Firefox :: New Tab Page, task, P1)
Tracking
()
People
(Reporter: jdavis, Assigned: thecount)
Details
Run performance numbers w/ SPOC V2 enabled and get performance greenlight with Fx 74, and Fx 75, before we can run experimetn with Fx 74 on March 10.
Timeline:
Performance numbers by 2/21.
Review and approval (or mitigations ID'd) by 2/28
Reporter | ||
Comment 1•5 years ago
|
||
RISK: IF we don't pass Fx 74 (or Fx 75) - there's likely a lot of work to make this performance green. Scott to run performance numbers as soon as Nightly 75 things land.
Reporter | ||
Updated•5 years ago
|
Assignee | ||
Comment 2•5 years ago
•
|
||
Setup steps, do this for all following test cases:
- Create a new profile, but doing it on an older profile with some history can produce more accurate results.
- Install the profiler extension on that profile. https://profiler.firefox.com/
- Set browser.newtabpage.activity-stream.asrouter.devtoolsEnabled to true
- Open about:newtab#devtools-ds
- Ensure "show_spocs" is checked
Steps to test performance of v2 download fresh attachments:
- Click "refresh cache"
- Click ctrl+shift+1 to start recording.
- Scroll down a bit and click "Enable V2 Personalization"
- Scroll up and click "Trigger Idle Daily"
- You should now have all the attachments from remote settings downloaded.
- Scroll up and click "Expire Cache"
- Scroll up and click "Trigger System Tick"
- Ctrl+shift+2 to stop recording.
- You should have a new profile, but you probably want to click "publish" to save it or share it.
Steps to test performance of v2 with existing attachments:
- Do the no cache steps.
- Click "refresh cache"
- Click ctrl+shift+1 to start recording.
- Scroll up and click "Expire Cache"
- Scroll up and click "Trigger System Tick"
- Ctrl+shift+2 to stop recording.
- You should have a new profile, but you probably want to click "publish" to save it or share it.
Reporter | ||
Updated•5 years ago
|
Reporter | ||
Updated•5 years ago
|
Updated•5 years ago
|
Comment 3•5 years ago
|
||
Verified this using Firefox Nightly 77.0a1 (Build ID 20200407093520) on Windows 10 x64 and obtained the following results:
- following first scenario - performance of v2 download fresh attachments - https://profiler.firefox.com/from-file/calltree/?globalTrackOrder=7-0-1-2-3-4-5-6&hiddenGlobalTracks=1-2-3-4-5&hiddenLocalTracksByPid=12584-2&localTrackOrderByPid=12784-1-2-0~7428-0~17188-0~15580-0~10316-0~7524-0-1~12584-3-0-1-2~&thread=0&v=4
- following the second scenario - performance of v2 with existing attachments - https://profiler.firefox.com/from-file/calltree/?globalTrackOrder=6-0-1-2-3-4-5&hiddenGlobalTracks=1-2-3-4&hiddenLocalTracksByPid=3884-1-2&localTrackOrderByPid=16968-1-2-0~17068-0~16112-0~15556-0~9832-0-1~3884-3-0-1-2~&thread=0&v=4
@Gavin: Could you please take a look at these links and let me know what do you mean when saying "green performance", at what should I be looking? At the "Running Time"? Thanks!
Assignee | ||
Comment 4•5 years ago
|
||
The main bit of work that cleared up this issue and got us into the green is: https://bugzilla.mozilla.org/show_bug.cgi?id=1621018
Sorry I didn't link that earlier, but I moved most all of my work into there once I knew the strategy I was going to use.
Clicking on those links doesn't take me to them, I think you need to publish them first.
Assignee | ||
Updated•5 years ago
|
Comment 5•5 years ago
|
||
Sorry about the links! I think they are ok, now.
- first scenario - performance of v2 download fresh attachments -> https://perfht.ml/2UNl2FM
- second scenario - performance of v2 with existing attachments -> https://perfht.ml/34uCvWV
Assignee | ||
Comment 6•5 years ago
|
||
Those don't show any issues, which is good.
But it also looks like from when I made these steps to test, and when we finished that work and tested it, some things changed, and it's not showing everything in the profiles.
I also think I did an overkill on the steps to test by providing two ways to test, only 1 is needed at this point. I'll update it with some better steps, but no rush on redoing them. Doing the following steps is the most up to date and is going to get the most accurate results.
- Create a new profile, but doing it on an older profile with some history can produce more accurate results.
- Install the profiler extension on that profile. https://profiler.firefox.com/
- Set browser.newtabpage.activity-stream.asrouter.devtoolsEnabled to true
- Set
browser.newtabpage.activity-stream.discoverystream.spocs-endpoint
tohttps://spocs.getpocket.com/spocs?country=US®ion=CA
- Click the profiler button in the top right (looks like a little stop watch) and select "Firefox Front-End" from the settings dropdown.
- Open about:newtab#devtools-ds, most of the next steps button clicks are done from within this page.
- Ensure "show_spocs" is checked
- Ensure you can see spocs
- Click "refresh cache"
- Click ctrl+shift+1 to start recording.
- Scroll down a bit and click "Enable V2 Personalization"
- Scroll up and click "Trigger Idle Daily"
- You should now have all the attachments from remote settings downloaded.
- Scroll up and click "Expire Cache"
- Scroll up and click "Trigger System Tick"
- Ctrl+shift+2 to stop recording.
- You should have a new profile, but you probably want to click "publish" to save it or share it.
Comment 7•5 years ago
|
||
Hey @Scott,
Valentina is currently on PTO so I’ll fill-in for her on this bug verification.
I’ve tested the performance by using the latest Firefox Nightly 77.0a1 (Build ID: 20200408033650) and the steps you’ve provided in comment 6 on Windows 10 x64, macOS 10.15, and Ubuntu Linux. The results of my testing can be found here:
Windows 10: https://perfht.ml/2UPaR3o
MacOS: https://perfht.ml/3e7TKRW
Ubuntu Linux: https://perfht.ml/2XhGJ2o
Given the above results and the fact that bug 1621018 is marked as VERIFIED, do you think that this is enough verification from our side in order to mark this bug as VERIFIED?
Assignee | ||
Comment 8•5 years ago
•
|
||
Those profiles look good to me!
What I'm looking for with those, is any red bars caused by personality provider files, in the parent process.
In the case of both windows and mac, there is no red in the parent process.
In the case of linux, there is some. I couldn't find any related to personality provider, nor was any of it "high" I suspect it was just a different machine with different hardware specs, so simple operations became more of an issue. This is normal, for when I ran profiles on lower end machines.
I also checked all three profiles you provided in the DOM worker thread for the personality provider work, and found it. This is to verify we didn't have a false positive. To find the dom worker threads, you need to turn them on inside the "tracks visible" dropdown. But it's cool, I don't expect you to do that. I think we can mark this verified.
I've configured on of your examples to show the red bars in the worker thread, and not the parent process, which is what we're looking for https://perfht.ml/39Swlkq
Comment 9•5 years ago
|
||
Thank you very much, Scott! Now that you’ve explained what we are looking for, it starts to make more sense.
Given the verification done in comment 7 and the confirmation from Scott in comment 8, I’m marking this bug as VERIFIED.
Description
•