Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Page-level performance Test and Analysis

2025-02-21 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/03 Report--

As I said in my previous article, I divided performance into three levels. This time we talk about page-level testing and tuning, which is illustrated by an example.

Phenomenon:

1. The company's website is unusually slow during the activity period, while the back-end traffic is not weird.

2. The normal performance of the page is relatively normal and the speed is relatively fast.

Test:

For performance testing, I personally think that in addition to the basic knowledge and capabilities, the most convincing is data + comparison. So the general idea can be like this: select a category of several sites with the same pages for comparative analysis, including total requests,total time,total bytes received and other indicators.

So how to test it? At this point, we need to resort to tools and scripts, and we have two ways:

A 、 httpwatch

B, the development of a test page framework, can count js rendering, the first screen, and all open and other data, a lot.

Analysis:

After comparing the data, you need to make a good analysis, and make an in-depth analysis of the abnormal or poor places compared with other websites. After comparison, we found that requests,time and other indicators are higher than similar sites, but the specific location can not be located, then how to do?

At this time, we can achieve unexpected results by using yslow+showslow. After another comprehensive test, we found that our indicators of cookie and experis that have nothing to do with domain names are very low, but it is clear that static resources, such as pictures, have been put in the second-level domain name. What's the matter?

It should be pointed out here that if your domain name uses pan-resolution, then putting in the secondary domain name is invalid, and it will still be a waste of time and bandwidth to send cookie URL.

Solution:

Since we found out and asked, let's solve it! Wait a minute, in fact, you should check with the operation and maintenance personnel's children's shoes to make sure it's safer before that.

The solution is also simple, that is to buy a domain name to deploy ok.

Results:

After the redeployment and optimization of the use of experis, the performance of the front-end web page is greatly improved.

Summary:

Performance testing is not only concerned about the back-end, but also the front-end. This is the bucket principle, which depends on the short plank. In China, we do not pay much attention to the front-end performance testing. In fact, I am working hard to implement it. Ensure that the performance of each level can reach an appropriate level, so that the overall performance of the website will come up.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report