0

我想对我的网站进行性能审计:桌面,没有限制网络,没有限制 CPU。

我正在使用 Google Chrome 的 DevTools 的 Audits 选项卡并选择以下选项:

  • 设备:台式机
  • 审计:绩效
  • 节流:无节流
  • 清除存储(选中)

我的铬版本:

Google Chrome is up to date
Version 71.0.3578.98 (Official Build) (64-bit)

根据“审核”选项卡,我在 Chrome 中的 Lighthouse 版本是3.2.0

单击Run audits按钮后,将生成报告,其中包含以下运行时设置

URL: https://example.com/
Fetch time: Dec 15, 2018, 11:18 PM PST
Device: Emulated Nexus 5X
Network throttling: 150 ms TCP RTT, 1,638.4 Kbps throughput (Simulated)
CPU throttling: 4x slowdown (Simulated)
User agent (host): Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36
User agent (network): Mozilla/5.0 (Linux; Android 6.0.1; Nexus 5 Build/MRA58N) AppleWebKit/537.36(KHTML, like Gecko) Chrome/71.0.3559.0 Mobile Safari/537.36
CPU/Memory Power: 998

那么如何强制使用我的设置,以便我可以正确审核桌面?

编辑:上游验证为 Chrome 错误:

https://bugs.chromium.org/p/chromium/issues/detail?id=914387

4

1 回答 1

1

看来这是一个 Google Chrome 错误,请参阅下面的引用和参考:

We've found the culprit, but it'll require a Chrome-side fix.

Note that it's not just Mobile/Desktop, but the throttling settings and clear storage options are also being ignored at the moment which would explain all of the performance score differences.
-- patrickhulce, paulirish

参考:https ://github.com/GoogleChrome/lighthouse/issues/6772#issuecomment-446626154

上游错误:https ://bugs.chromium.org/p/chromium/issues/detail?id=914387

Verified the fix on Mac 10.12.6, Windows-10 & Ubuntu 17.10 on Chrome version #73.0.3640.0 as per the comment#0

批准用于 Chrome M72 分支,3626

于 2018-12-16T08:09:39.857 回答