text: // taken from https://github.com/GoogleChrome/lighthouse/blob/b834427d676dc77e112d124ca42cc588f896950e/lighthouse-core/config/constants.js#L8-L41
  /**
   * Adjustments needed for DevTools network throttling to simulate
   * more realistic network conditions.
   * @see https://crbug.com/721112
   * @see https://docs.google.com/document/d/10lfVdS1iDWCRKQXPfbxEn4Or99D64mvNlugP1AQuFlE/edit
   */
  const DEVTOOLS_RTT_ADJUSTMENT_FACTOR = 3.75;
  const DEVTOOLS_THROUGHPUT_ADJUSTMENT_FACTOR = 0.9;
  
  const throttling = {
    DEVTOOLS_RTT_ADJUSTMENT_FACTOR,
    DEVTOOLS_THROUGHPUT_ADJUSTMENT_FACTOR,
    // These values align with WebPageTest's definition of "Fast 3G"
    // But offer similar charateristics to roughly the 75th percentile of 4G connections.
    mobileSlow4G: {
      rttMs: 150,
      throughputKbps: 1.6 * 1024,
      requestLatencyMs: 150 * DEVTOOLS_RTT_ADJUSTMENT_FACTOR,
      downloadThroughputKbps: 1.6 * 1024 * DEVTOOLS_THROUGHPUT_ADJUSTMENT_FACTOR,
      uploadThroughputKbps: 750 * DEVTOOLS_THROUGHPUT_ADJUSTMENT_FACTOR,
      cpuSlowdownMultiplier: 4
    },
    // These values partially align with WebPageTest's definition of "Regular 3G".
    // These values are meant to roughly align with Chrome UX report's 3G definition which are based
    // on HTTP RTT of 300-1400ms and downlink throughput of <700kbps.
    mobileRegluar3G: {
      rttMs: 300,
      throughputKbps: 700,
      requestLatencyMs: 300 * DEVTOOLS_RTT_ADJUSTMENT_FACTOR,
      downloadThroughputKbps: 700 * DEVTOOLS_THROUGHPUT_ADJUSTMENT_FACTOR,
      uploadThroughputKbps: 700 * DEVTOOLS_THROUGHPUT_ADJUSTMENT_FACTOR,
      cpuSlowdownMultiplier: 4
    },
    // Using a "broadband" connection type
    // Corresponds to "Dense 4G 25th percentile" in https://docs.google.com/document/d/1Ft1Bnq9-t4jK5egLSOc28IL4TvR-Tt0se_1faTA4KTY/edit#heading=h.bb7nfy2x9e5v
    desktopDense4G: {
      rttMs: 40,
      throughputKbps: 10 * 1024,
      cpuSlowdownMultiplier: 1,
      requestLatencyMs: 0, // 0 means unset
      downloadThroughputKbps: 0,
      uploadThroughputKbps: 0
    }
  };
  
  // https://github.com/GoogleChrome/lighthouse/blob/master/docs/configuration.md
  // okay, maybe a little different from...
  // https://github.com/GoogleChrome/lighthouse/blob/master/lighthouse-core/config/perf-config.js
  export default {
    extends: 'lighthouse:default',
    settings: {
      emulatedFormFactor: 'mobile',
      // "These exact figures are used as Lighthouse's throttling default"
      // https://github.com/GoogleChrome/lighthouse/blob/8f500e00243e07ef0a80b39334bedcc8ddc8d3d0/lighthouse-core/config/constants.js#L19-L26
      // https://github.com/GoogleChrome/lighthouse/blob/master/docs/throttling.md
      throttling: throttling.mobileSlow4G,
      throttlingMethod: 'simulate'
    }
  };
  