Testcase preloading and then querying cache is 4.5x slower in Firefox compared to Chrome
Categories
(Core :: Networking, defect, P3)
Tracking
()
People
(Reporter: mayankleoboy1, Unassigned)
References
(Blocks 2 open bugs)
Details
(Whiteboard: [necko-triaged])
Attachments
(2 files)
Serve the testcase over a simple HTTP server
Open the testcase
Input 50000 and click on run
Firefox gecko profiler: https://share.firefox.dev/433pbHp (40s)
Firefox samply profiler: https://share.firefox.dev/3Sq879I (38s)
Chrome samply: https://share.firefox.dev/4iV48wK (9s)
| Reporter | ||
Updated•5 months ago
|
| Reporter | ||
Comment 1•5 months ago
|
||
Comment 2•5 months ago
|
||
Note that UBlock seems heavily involved; can you retake the profiles without ublock? https://share.firefox.dev/42QIXqS
Also, collect the profile with the Networking preset if you can. Thanks!
| Reporter | ||
Comment 3•5 months ago
•
|
||
Fresh profile, no addons. Networking preset logging.
N=10k. (Profile with N=50k is too big to capture)
https://share.firefox.dev/4jTvQLJ (13s)
| Reporter | ||
Comment 4•5 months ago
|
||
With this test (and another 1-2 for which i didnt file bugs), i am trying to test the performance of the cache of browsers. The idea being that people visit the same set of websites. So the perf of reading/validating existing data from the cache should be fast.
Comment 5•1 month ago
|
||
FYI. The profile shows that the cache appears to be uninvolved; the issue is the CPU needed to create a channel, and the biggest culprit appears to be the Classifier.
Updated•1 month ago
|
Comment 6•1 month ago
|
||
To elaborate: over 70% of the CPU time seems to be taken by channel creation, and the largest single runnable of that is ~31% in the Classifier - return runnable (which kicks off the next/primary stage of channel creation). "Task AsyncUrlChannelClassifier::CheckChannel - return" in https://share.firefox.dev/46nAtt3
26% Task PNecko::Msg_PHttpChannelConstructor
13% HttpChannelParent::TryInvokeAsyncOpen
and others
Jeff points out that markers are using up a lot of CPU here too.
Updated•1 month ago
|
Updated•10 days ago
|
Description
•