Home > front end >  Transfer: web site performance test
Transfer: web site performance test

Time:09-17

8 seconds principle: as a webmaster want to know, if you click on the website after couldn't open for 8 seconds, then the customer will be shut down and then to find another similar site,

Website open speed slow main reason:

Website for PHP, asp, asp.net, into jave, JSP and other language development of dynamic website, web site did not generate static pages or pseudo static,
WEB page USES a table or div + table of WEB page layout, writing code, code written in duplicate code too much, should streamline, and adopt to international standard for WEB development code writing, we suggest using div + CSS layout production conforms to the W3C standard WEB pages,
Web pages using the pictures too much, the serious influence website loading speed, site navigation, for example, the sidebar, web page background image, advertising pictures, etc.,
Web page dynamic script is too much, and the writing is not standard, such as javascript, online customer service is too much, the current time code and weather conditions,
The customer can't because of special industry, some sites do compare flowery, cutting drawing nor do rough, rough made a web page may have many image size is larger, this will seriously affect the opening speed,
Video on website, your video can be individually in the video server, or transit through large video website, such as the first uploaded to youku, sina sows a guest, and then put the url reference to a site code, remember don't alone in their own web server,
Choose high quality server, to ensure that the site open speed and stability, and advice on PING reflect speed in a 15 seconds for the best,
Website access speed slow for many reasons, we can use some common commands to preliminary detection of slow reason:

The Ping command:

Used to check whether the connection between your local computer to the server is normal, depending on the returns the length of time, we can preliminarily determine whether your network and server communication between flow and time value as small as possible, if the time value higher will be low, usually because your broadband network current condition, if the value is large, we are going to test step 2 use tracert command, the next step we will say to the tracert command, this command can also see a domain name is point to which IP address,

Ping the domain name or IP address, operating steps: "start" - "run" - type CMD - is determined under DOS character input: ping command, such as ping 220.181.107.31 or ping www.nowamagic.net,

Tracert command:

Used to check your local computer to send packets to the remote server all passes through the gateway address and time, use this command, we can check the access server because of where the gateway is slow and affected the access speed,

Steps: point "start" - "run" - type CMD - is determined under the DOS character input: Tracert command, such as Tracert 220.181.107.31 or Tracert www.nowamagic.net,

After using this command, we can have a look at the time which IP numerical suddenly very high, we will check about where is the IP gateway IP, can enter the IP query on www.ip138.com, so we can know the reason why access to slow,

You might ask, why I don't visit other website speed slow? Because access to each site by the number of the gateway is not necessarily the same gateway server,

The cause of the engine room server

At present, our country mainly include telecom machine room, CNC machine room, double room, when a user and website in different segments, such as server in telecommunications, with net access would be slow,

Server itself low hardware configuration and server space is little, not enough bandwidth and impact velocity, but enough bandwidth limitations or death will be slow, double room room export bandwidth as a result of insufficient can result in telecom, netcom, access all unhappy,

Server maintenance or updates will appear website open slowly, usually is around 2 o 'clock in the evening or update maintenance,

Network equipment problems

Not in the correct standards (T586A T586B) cable, there are a lot of hidden trouble, characterized by:
When a situation is began to use speed is very slow; Another case is starting speed is normal, but after a period of time, speed slow, the latter on the desktop computer performance is very obvious, but when using a laptop to check speed is characterized by normal, for this problem I found after years of practice, not in the correct standard production line caused by the slow speed is also related to the quality of the network card, the general performance of the desktop computer network card is better than a laptop, therefore, when troubleshooting with exchange method, using the Internet cable detection speed normal doesn't rule out my laptop don't make the existence of the problem, according to the standard we now require all press T586A, T586B standard to suppress Internet cable, not all laptop in detecting faults instead of a desktop computer,

Network equipment hardware failure caused by the broadcast storm caused by speed slow
As the main means of finding unknown equipment, radio plays a very important role in the network, however, the increase in the number of the network computer, an exponential increase in the number of broadcast packets, when the number of broadcast packets reached 30%, the transmission efficiency of network will decrease obviously, after the network card or network equipment damage, is constantly send broadcast packets, leading to a broadcast storm and paralyzed the network communication, therefore, can also be caused when network equipment hardware defective speed slow, when such failure is suspected, the first displacement method can be used to replace the hub or switch to exclude set line equipment failure, if the devices without fault, turn off the hub or switch power supply, with "Ping" under the DOS command to test involving computer one by one, find the defective card computer, replace the new card can restore normal speed, network CARDS, hubs and switches are the most prone to failure cause slower speed equipment,

Network existing in circuit result in slow speed
When the number of nodes in the network involved in not many, the structure is not very complex, generally the phenomenon is rare, but in some complex networks, there are often redundant backup lines, such as when they inadvertently even on a loop, such as string received from the network center computer room, and then from two room, computer room received computer from the network center and at the same time there is a spare line directly connected to the computer room, if these few lines connected at the same time, the composition loop, the packet will continue to send and check data, thus affecting the overall speed, be difficult to find this kind of circumstance, to avoid this kind of circumstance happening, requires that we must form a good habit: when laying cable network cable on clear label, there is spare line should be recorded, if such failure is suspected, generally adopt the method of partition segmented gradually eliminated,

A port to form the bottleneck in network result in slow speed
In fact, the router wan port and LAN ports, switch port, a hub port and server nic is likely to become network bottlenecks, such as when the slow speed, we can be used in the network during peak hours, using network management software to check the router, switch, server port data traffic; Also can use the Netstat command statistical data flow of each port, hereby confirms the location of the network data flow bottlenecks, try to increase the bandwidth, the specific method are many, such as the replacement server nic is 100 m or 1000 m, install multiple network CARDS, divided into multiple VLAN, change the router configuration to increase bandwidth, etc., can effectively alleviate the network bottlenecks, can maximize the data transmission speed,

Websites load is too heavy, relative bandwidth is too narrow, the local network speed too slow, too much computer Shared on the Internet, or Shared among Internet users also can appear when there is a lot of download to open the web page slow question,
The influence of site procedures to access speed

Using SQL database program is faster than the ACCESS to, the cache or other accelerating technology developed by the site speed is much faster than traditional web site,
As far as possible using a static HTML page
As is known to all, ASP, PHP, JSP application implements the dynamic interaction of web information, such as running is really very convenient, because their data is provided with good human-machine interface, can easily access and change the database content, make the website "move" rise, such as BBS, message boards, etc., but this kind of application must first be performed by the server after processing, the generated HTML page, and then "send" to the client to scan, it will have to spend a certain amount of server resources, if too much on virtual host using this kind of program, web page display speed will slow, so there's no need, please use static HTML pages,

The ASP, ASPX, PHP files such as access to reference js
This in ASP, ASPX, PHP applications such as when the design should pay attention to, if you want to be in a static HTML page embedded dynamic data, and the dynamic data is by ASP, PHP and other programs to provide, will use the following statement: reference, in this way, every time there is a person to visit your website, the server will perform and handle a tongji. The ASP file, extract the corresponding data from the database, and then output to the web site, if there are tens of thousands of people visit at the same time, is about to run tens of thousands of times, the consequences it is conceivable that suggest that data dynamically generated in these programs to a 1. Js file, and then through the front page & lt; SCRIPT SRC="http://www.nowamagic.net/1.js" & gt; </script> This code to reference the 1. Js file, in this way, data showed that the task of hand over to the client browser to do, will not use server resources, display speed fast, naturally

Use nested iframe another page
If you want to insert some ads on the site code, and don't want these ads site impact speed, then, use the iframe is the most appropriate, the method is: put the AD code in a separate page, and then embedded in the homepage to the page with the following code, so as not to because the advertising page delay and drag the whole page, according to the HTML code is as follows:

1 & lt; The IFRAME marginWidth=0 marginHeight=0 SRC="http://www.nowamagic.com/index.php" width=468 scrolling frameBorder=0=no height=60 leftmargin="0" topmargin="0" & gt; </iframe>
http://www.nowamagic.com/index.php is referenced file path,

Use less javascript effects
Special effects such as the mouse, on the page of special effects, the effects of the status bar, etc., the principle is to download by the server to the local machine first, and then run on a local machine, special effects much do naturally increase local machine operation burden, if the machine configuration in general, it is more slow,

Most javascript from other station copied by, so since the code in the process of circulating, might be wrong or incomplete copied "causing the site to crash; And someone will be malicious code, disguised as a special code brings safety hazards,

If you want to use, also should choose to compare effects of the normal download site safety code,

Web site may not have the error code, the error code to find out correct!!!!
Try using mature commercial source to stand, the image to your own space to use instead of remote calls, pictures of the other website, because once the other leg of the access speed is slow will have an impact on your site! Try not to put small advertisers advertising code, a lot of small server performance is causing the site to advertisers a half-day show not to come out the serious influence website browsing speed,

On a web page with the untreated big picture
Untreated big picture, the beginning will occupy a large space and make the website open speed is slow, can use photoshop, fireworks and other mapping software would be appropriate to reduce the image size,

Put on a web page have a large number of flash or video file
Home page on the flash animation, song, or TV, film, such as live flash often due to network reason cannot download play smoothly, make the page has been in a state of waiting for download, film and television broadcast, itself after a short period of time to buffer and download to start playing, if the network is bad to can't download and play,

Suggest to use less big flash, use less film and television broadcast (preferably not), or you will make your page open speed becomes very slow,

Space on the download file!
If the user with a network of express download software, each thread is an online, very fierce!

To apply for some domain name to somewhere else to website
If it is a top-level domain to point directly to come over, it has a great influence on the speed won't, but there are a lot of free to apply for a number of domain names, it itself is very slow, again after a few turns to, speed too clear,

Site pictures, documents being hotlinking
Such as: your website has a picture file, paste (note that is paste is not upload to other sites! Other web site users when browsing the file is an online number, especially when LOGO link note, be sure to put your other LOGO onto his space,

The influence of web page layout unreasonable

nullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnull
  • Related