How do fiddler weak network testing?

1, the analog network environment weak

Open Fiddler, Rules-> Performance-> Check Simulate Modem Speeds, then check the network access the site will find a lot slower

 

 

2, the principle Fiddler weak network

 

 

 

Let us analyze these lines of code:

  • First, to determine whether m_SimulateModem is true, that is, whether a weak network mode.

  • If weak network mode. The analysis code

  • oSession [ "request-trickle-delay"] = "300"; comments also understand, Delay sends by 300ms per KB uploaded upload 1KB need 300ms, transforming what upload speed: 1Kb / 0.3s = 10/3 (KB /. s)

  • If you want to set the upload speed of 50KB / s, you will need to set Delay time is 20ms

  • The same method can also upload speed limit, adjustment oSession [ "response-trickle-delay"] to.

 

After the setup is complete, empty the original log, and use your app to operate under conditions of weak network,

Select the first request and the last request, available throughout the overall page load time consumed. From the bar chart may be a request which are the most time consuming, thereby accessing the webpage access speed optimization

 

 

How many different requests time-consuming graphics sheet for that resource consuming maximum, and then optimize:

As shown below

 

Guess you like

Origin www.cnblogs.com/kezan/p/12465687.html