lighthouse-keeper icon indicating copy to clipboard operation
lighthouse-keeper copied to clipboard

Parallelize more work

Open ebidel opened this issue 7 years ago • 0 comments

In lighthouse-data.mjs there are opportunities to parallelize some of the promises in saveReport. We touch memcache, firestore several times, and cloudstorage to update metadata, cache entries, and (re-save) reports.

We could push some of these onto an array and use await Promise.all().

I'll explore this once https://github.com/GoogleChrome/lighthouse-keeper/pull/10/files is in. Want to benchmark it too :)

ebidel avatar Oct 25 '18 16:10 ebidel