在chrome dev工具中,网络限制的每个预设选项的速度是多少?

gbu*_*ton 24 google-chrome

自最近更新Chrome以来,预设不再标有带宽. 带宽预设

Chrome用于列出每个的实际速度,因此您可以简单地说出来.

这里的选项代表什么带宽或延迟?

tjb*_*tjb 26

这是 Robroi2000 的答案截图中的值的 csv

Preset,download(kb/s),upload(kb/s),RTT(ms)
GPRS,50,20,500
Regular 2G,250,50,300
Good 2G,450,150,150
Regular 3G,750,250,100
Good 3G, 1000,750,40
Regular 4G, 4000,3000,20
DSL 2000, 1000,5
WiFi 30000,150000,2
Run Code Online (Sandbox Code Playgroud)


小智 23

这是一个详细的旧屏幕截图这是一个详细的旧屏幕截图

  • [Google Developers](https://developers.google.com/web/tools/chrome-devtools/network/network-conditions#emulate_network_connectivity) 网站上的屏幕截图参考 (3认同)

Phi*_*lip 19

我在互联网上进行了两次速度测试.通过以下自定义配置文件,我获得了与预设相似的下载速度和ping延迟.

慢速3G定制:下载376 kb/s,延迟2000 ms
快速3G定制:下载1500 kb/s = 1.5 Mb/s,延迟= 550 ms

通过速度测试测量的实际下载速度仅略低于配置值.测量的ping延迟是自定义配置文件中配置的值的一半.


Tha*_*hai 15

来自 Chrome DevTools 的源代码,这里是预设:

/** @type {!Conditions} */
export const OfflineConditions = {
  title: Common.UIString.UIString('Offline'),
  download: 0,
  upload: 0,
  latency: 0,
};

/** @type {!Conditions} */
export const Slow3GConditions = {
  title: Common.UIString.UIString('Slow 3G'),
  download: 500 * 1024 / 8 * .8,
  upload: 500 * 1024 / 8 * .8,
  latency: 400 * 5,
};

/** @type {!Conditions} */
export const Fast3GConditions = {
  title: Common.UIString.UIString('Fast 3G'),
  download: 1.6 * 1024 * 1024 / 8 * .9,
  upload: 750 * 1024 / 8 * .9,
  latency: 150 * 3.75,
};
Run Code Online (Sandbox Code Playgroud)

  • Chrome 绝对应该在 UI 中添加这些值,尽管是只读的 (8认同)
  • 我认为它更像是每秒字节数,因为“/ 8”将位数转换为字节数。 (2认同)
  • 代码中“下载”和“上传”的单位是字节/秒,尽管 chrome 中的界面显示为千位/秒。代码中的计算例如“Fast3GConditions.download”意味着“1.6 (Mb/s) * 1024(到千位)* 1024(到位)/ 8(到字节)* .9(10% 带宽损失)”,它将 1.6 Mb/s(3G 数据表带宽)转换为 188743 B/s(3G 实际带宽)。 (2认同)

Shi*_*Jha 6

对于想知道在连接上下载/上传 1 MB 需要多长时间的人,以下是基于Roboroi 屏幕截图的结果

\n

下载 1 MB 的时间

\n

(1MB = 8Mb = 1024 Bytes = 8192 bits)

\n
CONNECTION TYPE                       DOWNLOAD_TIME      UPLOAD TIME\n\nRegular 2G (250Kb/s\xe2\xac\x87 50Kb/s\xe2\xac\x86) ->       33s                163 (2m 43s)\nGood 2G (450Kb/s\xe2\xac\x87 150Kb/s\xe2\xac\x86) ->         18s                54s\nRegular 3G (750Kb/s\xe2\xac\x87  250Kb/s\xe2\xac\x86) ->     11s                32s\nGood 3G (1Mb/s\xe2\xac\x87 750Kb/s\xe2\xac\x86) ->           8s                 11s\nRegular 4G (4Mb/s\xe2\xac\x87 3Mb/s\xe2\xac\x86) ->          2s                 3s\nWifi (30Mb/s\xe2\xac\x87 15Mb/s\xe2\xac\x86) ->              0.27s              0.53s\n
Run Code Online (Sandbox Code Playgroud)\n