diff options
author | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
---|---|---|
committer | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
commit | 5f8de423f190bbb79a62f804151bc24824fa32d8 (patch) | |
tree | 10027f336435511475e392454359edea8e25895d /devtools/client/shared/network-throttling-profiles.js | |
parent | 49ee0794b5d912db1f95dce6eb52d781dc210db5 (diff) | |
download | UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.gz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.lz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.xz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.zip |
Add m-esr52 at 52.6.0
Diffstat (limited to 'devtools/client/shared/network-throttling-profiles.js')
-rw-r--r-- | devtools/client/shared/network-throttling-profiles.js | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/devtools/client/shared/network-throttling-profiles.js b/devtools/client/shared/network-throttling-profiles.js new file mode 100644 index 000000000..ef139fda6 --- /dev/null +++ b/devtools/client/shared/network-throttling-profiles.js @@ -0,0 +1,68 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + +"use strict"; + +const K = 1024; +const M = 1024 * 1024; +const Bps = 1 / 8; +const KBps = K * Bps; +const MBps = M * Bps; + +/** + * Predefined network throttling profiles. + * Speeds are in bytes per second. Latency is in ms. + */ +/* eslint-disable key-spacing */ +module.exports = [ + { + id: "GPRS", + download: 50 * KBps, + upload: 20 * KBps, + latency: 500, + }, + { + id: "Regular 2G", + download: 250 * KBps, + upload: 50 * KBps, + latency: 300, + }, + { + id: "Good 2G", + download: 450 * KBps, + upload: 150 * KBps, + latency: 150, + }, + { + id: "Regular 3G", + download: 750 * KBps, + upload: 250 * KBps, + latency: 100, + }, + { + id: "Good 3G", + download: 1.5 * MBps, + upload: 750 * KBps, + latency: 40, + }, + { + id: "Regular 4G / LTE", + download: 4 * MBps, + upload: 3 * MBps, + latency: 20, + }, + { + id: "DSL", + download: 2 * MBps, + upload: 1 * MBps, + latency: 5, + }, + { + id: "Wi-Fi", + download: 30 * MBps, + upload: 15 * MBps, + latency: 2, + }, +]; +/* eslint-enable key-spacing */ |