Google Page Speed 见解。灯塔测量原点

Google Page Speed insights. Lighthouse measurement origin

Google 通过灯塔测量为给定 URL 提供速度指数: https://developers.google.com/speed/pagespeed/insights

数据和我自己测的有很大出入。现在我的猜测是,对于移动页面测试,他们在位于美国的机器上使用了一些 4G 仿真,而我的 testet 网络服务器位于欧洲。

知道在哪里可以找到有关他们执行测试的地理位置的信息吗?

Lighthouse 使用 'a slow 4G connection'。此选择会影响网络速度与页面权重的重要性。

来自Lighthouse Github repo

How does Lighthouse use network throttling, and how can I make it better?

Good question. Network and CPU throttling are applied by default in a Lighthouse run. The network attempts to emulate slow 4G connectivity and the CPU is slowed down 4x from your machine's default speed. If you prefer to run Lighthouse without throttling, you'll have to use the CLI and disable it with the --throttling.* flags mentioned above.

还有...

Are results sent to a remote server?

Nope. Lighthouse runs locally, auditing a page using a local version of the Chrome browser installed the machine. Report results are never processed or beaconed to a remote server.

来自web.dev website

All tests are run using a simulated mobile device, throttled to a fast 3G network & 4x CPU slowdown.

来自web.dev Github repo

Note: this repo contains the written content for web.dev. The client-side JS and server are not yet open source but we hope to share them soon! bowing_man️

结论我会说 web.dev 使用本地 JS 在浏览器中运行 Lighthouse,但是 Google 对此不是很清楚。我的主张可以得到人们的支持,他们希望 Lighthouse 能够 audit local websites