Google Page Speed见解.灯塔测量原点 [英] Google Page Speed insights. Lighthouse measurement origin

查看:128
本文介绍了Google Page Speed见解.灯塔测量原点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Google通过进行灯塔测量来为给定的URL提供速度索引: https://developers.google.com/speed/pagespeed/insights

Google provides Speed index for given URL by doing a lighthouse measurement: https://developers.google.com/speed/pagespeed/insights

数据与我自己的测量有很大不同.现在我的猜测是针对移动页面测试,他们在美国的机器上使用一些4G仿真,而我的睾丸网络服务器在欧洲.

The data differs a lot from my own measurement. Now my guess is for the mobile page test they use some 4G emulation on a machine located in the US while my testet webserver is located in europe.

有什么想法可以在哪里找到他们进行测试的地理位置的信息?

Any idea where to find information on the geo location they perform testing from ?

推荐答案

灯塔使用缓慢的4G连接".这种选择影响着网络速度与页面权重的重要性.

Lighthouse uses 'a slow 4G connection'. This choice influences the importance of network speed versus page weight.

来自灯塔Github存储库:

Lighthouse如何使用网络限制,如何使它变得更好?

好问题.默认情况下,在Lighthouse运行中应用网络和CPU限制.网络尝试模拟缓慢的4G连接,并且CPU的速度比计算机的默认速度降低了4倍.如果您希望在不进行限制的情况下运行Lighthouse,则必须使用CLI并通过上述--throttling.*标志将其禁用.

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.

然后...

结果是否发送到远程服务器?

不. Lighthouse在本地运行,使用安装了计算机的Chrome浏览器的本地版本审核页面.报表结果永远不会处理或从信标发送到远程服务器.

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网站:

所有测试均使用模拟的移动设备运行,并限制在快速的3G网络中; 4倍CPU速度下降.

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

web.dev Github存储库:

注意:此存储库包含web.dev的书面内容.客户端JS和服务器尚未开源,但我们希望尽快共享它们! bowing_man️

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能够审核本地网站的人可以支持我的主张.

Concluding I would say that web.dev runs Lighthouse in a browser, using local JS, but Google is not very clear about this. My claim can be backed up by people expecting Lighthouse to be able to audit local websites.

这篇关于Google Page Speed见解.灯塔测量原点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆