The loading speed of the website is very important for a website, its own use from different vendors of the server, the comparison of advantages and disadvantages, the disk, memory space, and so feel is not the case, the main response speed has a relatively large difference, intuitive look more troublesome, so write a simple page directly test loading speed.
The Head section writes the following, noting the start time:
<script> varnew Date (). GetTime (); </script>
Then add a picture to the body, the size of the tablet (your-img-size).
Finally insert a section of JS before </body>:
<script> function() { var time = (new Date (). GetTime ()- Start)/1000; var speed = Your-img-size/time; Alert ("Time-consuming:" + +-"seconds" + "\n\r Speed:" + math.round + "kb/s") }</script>
Then you can do the Speed test (demo see www.zeakhold.com/speed-test/).
This method is only relatively rough to get the response speed of the server, to complete the speed also have to consider the HTTP status, site resolution time, server connection time, and so on, here can use the home of the Webmaster Ping tool (URL: http://ping.chinaz.com/).
(reproduced please specify the source--http://www.cnblogs.com/zeakhold/)
JS Test Server speed