Skip to content
This repository was archived by the owner on Jan 10, 2023. It is now read-only.
This repository was archived by the owner on Jan 10, 2023. It is now read-only.

Reading speed from service worker #45

Description

@m0-n

Upon preliminary analysis, reading speed of the service worker in sirko-io seems comparable to network. Low latency, but also low reading speed.

Data:
image

Total load time demo: 1.0 - 1.5s

Is that a bug / some IO blocking in the SW ? How can that number be brought down to 20-30ms as normal read operations?

Activity

  1. dnesteryuk commented on Apr 11, 2019

    @dnesteryuk
    Collaborator

    @stefanspirkl I assume this image wasn't in the cache 🤔 Once the engine makes the prediction, the browser needs time to download content. If a user moves too fast between pages, there won't be enough time for downloading. Cached content can be checked in Application -> Cache storage.

  2. dnesteryuk commented on Apr 11, 2019

    @dnesteryuk
    Collaborator

    @stefanspirkl I double checked this case and found an interesting observation

    Untitled

    Before visiting the predicted page, I removed avatar2.png from the cache storage, it took only 6 ms (2 ms were spent on downloading from the disk cache) to deliver it. Meanwhile, the other images were delivered within 30 ms.

    I see from your example that it took 386 ms to deliver post01.jpg. Meanwhile, 27 ms were needed to get it from the disk cache. So, what was happening other 359 ms?!

    My first assumption is a restriction to a number of concurrent requests to the cache storage.

  3. dnesteryuk commented on May 31, 2019

    @dnesteryuk
    Collaborator

    Hi @stefanspirkl finally, I got time to investigate this issue. Here is a first result https://nesteryuk.info/2019/05/25/chrome-cache-storage-vs-disk-cache.html I will keep you updated when I find something more 😉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions