zhihu.com loading very slow after scroll down several times
Categories
(Core :: JavaScript Engine: JIT, defect, P3)
Tracking
()
People
(Reporter: Tom25519, Unassigned)
References
(Blocks 1 open bug)
Details
### Basic information
Steps to Reproduce:
- Open a page of zhihu.com, which have lots of replys and/or pictures, for example, https://www.zhihu.com/question/594727378 or https://www.zhihu.com/question/527323332
zhihu.com loading very slow after scroll down several times, and high CPU usage. - Scroll down several times. The performance will be worse and worse.
Expected Results:
This bug should be prevent.
Performance recording (profile)
Profile URL:
https://share.firefox.dev/3MwjtG3
https://share.firefox.dev/459g2gY
System configuration:
OS version: Windows 10 Enterprise LTSC 2021 x64
GPU model: HD4600, CPU i5-4690
Number of cores: 4
Amount of memory (RAM): 16 GB
More information
Please consider attaching the following information after filing this bug, if relevant:
- Screenshot / screen recording
- Anonymized about:memory dump, for issues with memory usage
- Troubleshooting information: Go to about:support, click "Copy text to clipboard", paste it to a file, save it, and attach the file here.
Thanks so much for your help.
Comment 1•11 months ago
|
||
The website is written in a very slow way, and also appears slow in Chrome.
However, there is something strange in the profiles you posted: The faster JITs aren't being used.
Do you have any non-default setting for javascript.
preferences in about:config
? For example, are javascript.options.ion
and javascript.options.baselinejit
set to true
?
(In reply to Markus Stange [:mstange] from comment #1)
The website is written in a very slow way, and also appears slow in Chrome.
However, there is something strange in the profiles you posted: The faster JITs aren't being used.
Do you have any non-default setting for
javascript.
preferences inabout:config
? For example, arejavascript.options.ion
andjavascript.options.baselinejit
set totrue
?
No. All javascript.
preferences in about:config
are keeping default.
Comment 3•11 months ago
|
||
Iain, do you have any ideas what else might be preventing this from tiering up and any further information we may need to ask for from the reporter?
Comment 4•11 months ago
|
||
Testing it myself, I see plenty of time spent in Ion, so it's not a universal problem.
Is the performance any better with a fresh user profile?
(In reply to Iain Ireland [:iain] from comment #4)
Testing it myself, I see plenty of time spent in Ion, so it's not a universal problem.
Is the performance any better with a fresh user profile?
Now I using Firefox 114.0.1, the performance seems better than before (even before refresh firefox), but it seems that firefox doesn't use all of CPU (i.e. 25-40% overall), is this a normal phenomenon?
Updated•10 months ago
|
Comment 6•10 months ago
|
||
(In reply to Tom25519 from comment #5)
Now I using Firefox 114.0.1, the performance seems better than before (even before refresh firefox), but it seems that firefox doesn't use all of CPU (i.e. 25-40% overall), is this a normal phenomenon?
In general, if there's work to do, I would expect us to be using 100% of one core to run the main thread (unless we're stuck waiting for the network), and sometimes making use of background threads for compilation and other tasks. If you have a four-core machine and your OS is reporting CPU usage as a fraction of the maximum possible usage, that might show up as 25-40%.
If you put up a profile, I can take a look.
Will set javascript.options.mem.gc_parallel_marking
= true
improve the performance? After some time my last update on this bug, I tune this option manually.
Description
•