-
Notifications
You must be signed in to change notification settings - Fork 2.6k
[Perf] CPU regression caused by adblock unified catalog #35922
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
[Perf] CPU regression caused by adblock unified catalog #35922
Comments
As far as I'm aware, we have the following options for resolving this:
However:
|
@atuchin-m is the spike in CPU usage on some platforms only on first launch? |
From the slack thread: |
Hm, I’ve enabled 10 extra lists. |
The above requires
Created #36749 which is also happening via |
Verified
|
If an issue was found/ads initially being displayed, compared against
|
Example |
Example |
---|---|
![]() |
![]() |
RAMCPU.mp4
Test Case #2
- Slowing down VM via CPU
, RAM
& Network
(200ms
delay) - No ads appearing on initial launch
- set the
RAM
of the current VM to4GB
- assigned
2
CPU's to the VM from host (ensured thatDynamic Memory
is also disabled) - using https://jagt.github.io/clumsy/index.html to slow down the VM network (using
200ms
delay)
200msDelay.mp4
Test Case #3
- Slowing down VM via CPU
, RAM
& Network
(300ms
delay) - No ads appearing on initial launch
- set the
RAM
of the current VM to4GB
- assigned
2
CPU's to the VM from host (ensured thatDynamic Memory
is also disabled) - using https://jagt.github.io/clumsy/index.html to slow down the VM network (using
300ms
delay)
300msDelay.mp4
Win 11 x64
verifications using a real desktop/high-end HW specs
Brave | 1.64.104 Chromium: 123.0.6312.46 (Official Build) (64-bit)
-- | --
Revision | 0ca3d372cf8aab96fafdd75f5c5c8d2012bc0cc6
OS | Windows 11 Version 23H2 (Build 22631.3296)
Test Case #4
- Desktop with high-end HW specs - No ads appearing on initial launch
The following is the basic check re: loading a website right after Brave launches on a machine with high-end HW specs.
highHWSpecs.mp4
If an issue was found/ads initially being displayed, compared against
|
Verification
Encountered #36749 Verified on following sites as a basic check with loading a website right after Brave launches.
2024-03-15_12h49_56.mp4
2024-03-15_12h56_30.mp4
2024-03-15_12h59_27.mp4 |
We have a slight CPU usage spike on some platforms (mac-m1, win11) in the revision range brave/brave-core@v1.64.35...v1.64.36

I believe it’s the adblock changes: brave/brave-core#21556
I’ve checked adblock work in the traces before/after, the structure is changed and the new number are bigger:
The text was updated successfully, but these errors were encountered: