In chrome dev tools, what is the speed of each preset option for network throttling?

前端 未结 4 1058
轻奢々
轻奢々 2021-02-06 20:50

Since a recent update to chrome, the presets are no longer labelled with bandwidth.

Chrome used to list the actual speed of each one so you could simply tell.

W

4条回答
  •  甜味超标
    2021-02-06 21:41

    From Chrome DevTools’ source code, here are the presets:

    /** @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,
    };
    

提交回复
热议问题