GoogleChromeLabs / AutoWebPerf

AutoWebPerf provides a flexible and scalable framework for running web performance audits with arbitrary audit tools including PageSpeedInsights, WebPageTest and more.
Apache License 2.0
353 stars 32 forks source link

Create a local Lighthouse gatherer #15

Open jonchenn opened 4 years ago

jonchenn commented 4 years ago

Add a gatherer that can run local lighthouse with CLI and parse metrics.

dvelasquez commented 3 years ago

Very interesting project indeed. Do you think that this feature could support remote Lighthouse instances? Let me elaborate a little more:

At work, we have pages that are heavy localised and have a lot of traffic from specific countries, for example:

Several of this countries don't have a big cloud provider (Amazon|Google Cloud|Azure) in the same country, and some of them have very specific network topologies which makes testing outside their country very difficult (Belarus specially).

So for now we have been shipping Lighthouse in a docker container and every country is running it in the infrastructure that they have.

Could we mount a Lighthouse Server that accept connections from AutoWebPerf so, instead of connect to PSI or WebPageTest, this can connect to a hosted Lighthouse server with the CLI?

gilbertococchi commented 3 years ago

Hi Danilo, yes this feature should allow to run AutowebPerf in a docker with a local lighthouse CLI command to execute the Performance test from that particular location where the Docker is hosted/located.