Slow Content Download on Chrome
Reported by
christop...@gmail.com,
Apr 6 2018
|
|||||
Issue descriptionUserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36 Example URL: https://jsonplaceholder.typicode.com/photos Steps to reproduce the problem: 1. Open the Network tab in Chrome 2. Go to an URL with many json elements like https://jsonplaceholder.typicode.com/photos 3. Check the Content Download and compare it to a curl/another Browser What is the expected behavior? Fast Content Download What went wrong? Content Download is way slower than any other major Browser (tests have been run on Firefox 58.0.1 and Microsoft Edge 41.16299.248.0) and seems inconsistent With browser cache disabled : Chrome : mostly between 200-400ms Firefox : 0ms Edge : around 50ms Did this work before? N/A Chrome version: 65.0.3325.181 Channel: stable OS Version: 10.0 Flash Version: We initially had this issue on an internal API where a 460KB Json (gzipped from 3.2MB, but same difference applies without GZip, array of 1k2 json elements) took between 8secs up to 20 on Chrome, while it's below 300ms on other browsers. I couldn't find an API replicating the same numbers, but the public API jsonplaceholder also show this issue, although less dramatically. Please let me know if more specific informations are needed.
,
Apr 8 2018
,
Apr 10 2018
If this is caused by the the blob url request made for the main resource, this mechanism is going to be removed. If all goes well, it will be enabled at 100% on M66 using finch and the old code path will be removed in M67.
Though, I tried with and without it, I don't see any difference. (See screenshots)
I am using Chrome 67 on refs/heads/master@{#548788}.
I tried this command to benchmark time needed to download the file.
ab -n 50 https://jsonplaceholder.typicode.com/photos
I got a median time of 66ms.
What is weird is that Firefox gives me a total of 9ms and a "receiving time" of 0ms. I expected it to be at least 66ms. I am using Firefox 55 and load the request without using any caches.
So yes, globally I am getting the same results as you do. Maybe we are not displaying the same thing or fail to measure the correct timing.
+CC navigation folks.
,
Apr 10 2018
That may indicate that whatever is pulling the bits is having a hiccup rather than the handover mechanism?
,
Apr 11 2018
Since this appears to be a blob issue, removing the internals>network label.
,
Apr 12 2018
This is not a 'blob' issue. I tested in comment 3 that enabling NavigationMojoResponse (where the blob url mechanism is removed) doesn't improve things. Assigning this issue to myself for the moment. I will try to debug this once I have more time (not immediately). |
|||||
►
Sign in to add a comment |
|||||
Comment 1 by morlovich@chromium.org
, Apr 6 2018