service-worker-gateway icon indicating copy to clipboard operation
service-worker-gateway copied to clipboard

feat: perf measuring via onProgress events

Open SgtPooki opened this issue 1 year ago • 2 comments

We should do some exploratory work to investigate how we can get timing for events based on onProgress events.

To do this, we will likely need to configure some 'start' and 'end' events for various processes (networked-storage:findProviders:start, *:end, etc...), and the log the timing somewhere, maybe push up to honeycomb or other service.

  • [ ] Collate list of start/end events and confirm with team these are good events to start collecting timings for

SgtPooki avatar Dec 05 '24 16:12 SgtPooki

Two options in regards of interface:

For high level the Server-Timing header gives us immediatelly useful UI in browser devtools:

lidel avatar Dec 05 '24 18:12 lidel

Note that we can get some libp2p timings with the changes from https://github.com/libp2p/js-libp2p/pull/2899 and https://github.com/libp2p/js-libp2p/pull/2898

SgtPooki avatar Feb 04 '25 15:02 SgtPooki