fiddler weak network test

1. Fiddle configuration Click Rules and select Customize Rules. Find the following code in FiddlerScript to adjust:

 

 2. Configure network delay

 

  oSession ["request-trickle-delay"] The larger the upstream delay number, the worse the network

 oSession ["response-trickle-delay"] Downstream delay

Latency vs. Network Diagram

 

 

 

 

 3. Click Rules-> performance-> Simulate Modem Speeds weak network configuration is successful

 

Second, fiddler simulates network fluctuations

1. Find the following code in FiddlerScript to adjust:

static function randInt(min, max) {
return Math.round(Math.random()*(max-min)+min);
}

if (m_SimulateModem) {
// Delay sends by 300ms per KB uploaded.
//随机延迟
var t = randInt(1,600);
FiddlerObject.log("随机延迟"+t);
oSession["request-trickle-delay"] = ""+t;
// Delay receives by 150ms per KB downloaded.
oSession["response-trickle-delay"] = ""+t;
}

2. Open Rules-> Performance-> Simulate Modem Speeds and configure OK

 

Guess you like

Origin www.cnblogs.com/dwdw/p/12748999.html